<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>primary keys vs unique keys - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/primary-keys-vs-unique-keys/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/primary-keys-vs-unique-keys/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Thu, 29 Sep 2022 09:17:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>primary keys vs unique keys - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/primary-keys-vs-unique-keys/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Can you use UNIQUE KEY as a replacement for Primary Key ?</title>
		<link>https://www.wikitechy.com/interview-questions/sql/can-you-use-unique-key-as-a-replacement-for-primary-key/</link>
					<comments>https://www.wikitechy.com/interview-questions/sql/can-you-use-unique-key-as-a-replacement-for-primary-key/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Thu, 29 Sep 2022 09:17:56 +0000</pubDate>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[can we use unique key as primary key]]></category>
		<category><![CDATA[difference between primary key and unique key]]></category>
		<category><![CDATA[difference between unique key and primary key]]></category>
		<category><![CDATA[foreign key and primary key]]></category>
		<category><![CDATA[how many null values in unique key]]></category>
		<category><![CDATA[primary key vs unique key]]></category>
		<category><![CDATA[primary keys vs unique keys]]></category>
		<category><![CDATA[unique key example]]></category>
		<category><![CDATA[unique key in sql]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4879</guid>

					<description><![CDATA[Both Keys are different. For Identifying each and every record in a table we use primary key. To apply additional uniqueness for other columns on the table we use Unique Key. Primary Keys are important for a table. Internal users use Primary Key whereas external users use unique key as it contains some meaningful information. [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">Both Keys are different. For Identifying each and every record in a table we use primary key.</li>
<li style="text-align: justify;">To apply additional uniqueness for other columns on the table we use Unique Key.</li>
<li style="text-align: justify;">Primary Keys are important for a table.</li>
<li style="text-align: justify;">Internal users use Primary Key whereas external users use unique key as it contains some meaningful information.</li>
<li style="text-align: justify;">When uniqueness is needed for multiple columns for a table, we use unique key for all columns and primary keys cannot be used in this case.</li>
<li style="text-align: justify;">Primary key uses clustered index by default and unique key uses Non-clustered index.</li>
</ul>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4880 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/09/unique-key-as-replacement-for-primary-key.jpg" alt="" width="680" height="352" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/09/unique-key-as-replacement-for-primary-key.jpg 680w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/09/unique-key-as-replacement-for-primary-key-300x155.jpg 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/09/unique-key-as-replacement-for-primary-key-390x202.jpg 390w" sizes="(max-width: 680px) 100vw, 680px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/sql/can-you-use-unique-key-as-a-replacement-for-primary-key/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
