<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unique key in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unique-key/m-p/1703464#M308245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The primary key is the key obtained by all key fields, an unique key is a key created by several fields (they can be or not be key fields) and the key has to be unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the primary key is always unique key a secondary index could be unique, but generally it isn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Nov 2006 10:45:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-10T10:45:55Z</dc:date>
    <item>
      <title>Unique key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unique-key/m-p/1703463#M308244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the difference between a Primary key and Unique in ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 10:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unique-key/m-p/1703463#M308244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-10T10:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unique key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unique-key/m-p/1703464#M308245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The primary key is the key obtained by all key fields, an unique key is a key created by several fields (they can be or not be key fields) and the key has to be unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the primary key is always unique key a secondary index could be unique, but generally it isn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 10:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unique-key/m-p/1703464#M308245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-10T10:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unique key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unique-key/m-p/1703465#M308246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This concept of primary key and unique key&lt;/P&gt;&lt;P&gt;comes into picture at the database level&lt;/P&gt;&lt;P&gt;(especially oracle)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The only difference is that&lt;/P&gt;&lt;P&gt;unique key allows &lt;/P&gt;&lt;P&gt;insertion of a NULL value&lt;/P&gt;&lt;P&gt;into the key field(s)&lt;/P&gt;&lt;P&gt;Where as primary key does not allow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Similary is ;&lt;/P&gt;&lt;P&gt;Both maintain unique/distinct values&lt;/P&gt;&lt;P&gt;in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 10:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unique-key/m-p/1703465#M308246</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-10T10:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unique key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unique-key/m-p/1703466#M308247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;Primary Key = Not Null + Unique(You cannot store empty or null values into Primary key) &lt;/P&gt;&lt;P&gt;Unique Key = You can store one empty value along with other unique values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply, if your field is Primary key , you cannot insert a duplicate or a empty value into it.&lt;/P&gt;&lt;P&gt;But if it is unique then you can inser one empty value but it should not be duplicate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 10:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unique-key/m-p/1703466#M308247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-10T10:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unique key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unique-key/m-p/1703467#M308248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 10:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unique-key/m-p/1703467#M308248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-10T10:58:29Z</dc:date>
    </item>
  </channel>
</rss>

