<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1413 MySQL Best Practices - Primary Key or unique index on every table</title><link>https://community.appian.com/support/w/kb/693/kb-1413-mysql-best-practices---primary-key-or-unique-index-on-every-table</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1413 MySQL Best Practices - Primary Key or unique index on every table</title><link>https://community.appian.com/support/w/kb/693/kb-1413-mysql-best-practices---primary-key-or-unique-index-on-every-table</link><pubDate>Mon, 23 Jul 2018 13:02:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83105d85-71af-4281-a9cf-d9677ee15848</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/693/kb-1413-mysql-best-practices---primary-key-or-unique-index-on-every-table#comments</comments><description>Current Revision posted to Appian Knowledge Base by Jordan Horwat on 7/23/2018 1:02:26 PM&lt;br /&gt;
&lt;p&gt;When creating new MySQL database table it is important to create a primary key or unique index. &amp;nbsp;When a primary key or unique index exists, lookup and count operations will be more efficient.&lt;/p&gt;
&lt;p&gt;A &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_primary_key"&gt;primary key&lt;/a&gt; is a column that can uniquely identify every row in the table. If there is no natural key, then &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_auto_increment"&gt;auto-increment&lt;/a&gt; can be used to create a synthetic key.&lt;/p&gt;
&lt;p&gt;If it is still not possible to create a primary key then a &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_unique_index"&gt;unique index&lt;/a&gt; should be created. &amp;nbsp;A unique index is a column or set of columns that is known to be unique.&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Adding a Primary Key to a New Table In phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When creating a new table in phpMyAdmin, select PRIMARY from the Index dropdown on the column that will be the primary key. &amp;nbsp;Check the box in the A_I column if this will be an auto incrementing key.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/6114.2017_2D00_11_2D00_07_5F00_16_2D00_26_2D00_03.png"&gt;&lt;img src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/6114.2017_2D00_11_2D00_07_5F00_16_2D00_26_2D00_03.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Adding a Primary Key to an Existing Table in phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;While on the Structure tab for the table, click Primary in the Action column next to the column name.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/2017_2D00_11_2D00_07_5F00_16_2D00_30_2D00_05.png"&gt;&lt;img src="/resized-image/__size/1027x240/__key/communityserver-wikis-components-files/00-00-00-00-11/2017_2D00_11_2D00_07_5F00_16_2D00_30_2D00_05.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When prompted, click OK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/2017_2D00_11_2D00_07_5F00_16_2D00_31_2D00_17.png"&gt;&lt;img src="/resized-image/__size/952x386/__key/communityserver-wikis-components-files/00-00-00-00-11/2017_2D00_11_2D00_07_5F00_16_2D00_31_2D00_17.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Creating a Unique Key in phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The easiest way to create a unique key in phpMyAdmin is to create the table first. &amp;nbsp;Once the table is created, select the check boxes next to the columns that are unique when combined, and click Unique underneath the table.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/2017_2D00_11_2D00_07_5F00_16_2D00_34_2D00_46.png"&gt;&lt;img src="/resized-image/__size/3153x344/__key/communityserver-wikis-components-files/00-00-00-00-11/2017_2D00_11_2D00_07_5F00_16_2D00_34_2D00_46.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, mysql, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1413 MySQL Best Practices - Primary Key or unique index on every table</title><link>https://community.appian.com/support/w/kb/693/kb-1413-mysql-best-practices---primary-key-or-unique-index-on-every-table/revision/4</link><pubDate>Wed, 08 Nov 2017 16:02:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83105d85-71af-4281-a9cf-d9677ee15848</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/693/kb-1413-mysql-best-practices---primary-key-or-unique-index-on-every-table#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Nick Vigilante on 11/8/2017 4:02:33 PM&lt;br /&gt;
&lt;p&gt;When creating new MySQL database table it is important to create a primary key or unique index. &amp;nbsp;When a primary key or unique index exists, lookup and count operations will be more efficient.&lt;/p&gt;
&lt;p&gt;A &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_primary_key"&gt;primary key&lt;/a&gt; is a column that can uniquely identify every row in the table. If there is no natural key, then &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_auto_increment"&gt;auto-increment&lt;/a&gt; can be used to create a synthetic key.&lt;/p&gt;
&lt;p&gt;If it is still not possible to create a primary key then a &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_unique_index"&gt;unique index&lt;/a&gt; should be created. &amp;nbsp;A unique index is a column or set of columns that is known to be unique.&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Adding a Primary Key to a New Table In phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When creating a new table in phpMyAdmin, select PRIMARY from the Index dropdown on the column that will be the primary key. &amp;nbsp;Check the box in the A_I column if this will be an auto incrementing key.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/6114.2017_2D00_11_2D00_07_5F00_16_2D00_26_2D00_03.png"&gt;&lt;img src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/6114.2017_2D00_11_2D00_07_5F00_16_2D00_26_2D00_03.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Adding a Primary Key to an Existing Table in phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;While on the Structure tab for the table, click Primary in the Action column next to the column name.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/2017_2D00_11_2D00_07_5F00_16_2D00_30_2D00_05.png"&gt;&lt;img src="/resized-image/__size/1027x240/__key/communityserver-wikis-components-files/00-00-00-00-11/2017_2D00_11_2D00_07_5F00_16_2D00_30_2D00_05.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When prompted, click OK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/2017_2D00_11_2D00_07_5F00_16_2D00_31_2D00_17.png"&gt;&lt;img src="/resized-image/__size/952x386/__key/communityserver-wikis-components-files/00-00-00-00-11/2017_2D00_11_2D00_07_5F00_16_2D00_31_2D00_17.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Creating a Unique Key in phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The easiest way to create a unique key in phpMyAdmin is to create the table first. &amp;nbsp;Once the table is created, select the check boxes next to the columns that are unique when combined, and click Unique underneath the table.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/2017_2D00_11_2D00_07_5F00_16_2D00_34_2D00_46.png"&gt;&lt;img src="/resized-image/__size/3153x344/__key/communityserver-wikis-components-files/00-00-00-00-11/2017_2D00_11_2D00_07_5F00_16_2D00_34_2D00_46.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mysql&lt;/div&gt;
</description></item><item><title>KB-1413 MySQL Best Practices - Primary Key or unique index on every table</title><link>https://community.appian.com/support/w/kb/693/kb-1413-mysql-best-practices---primary-key-or-unique-index-on-every-table/revision/3</link><pubDate>Wed, 08 Nov 2017 11:02:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83105d85-71af-4281-a9cf-d9677ee15848</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/693/kb-1413-mysql-best-practices---primary-key-or-unique-index-on-every-table#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Nick Vigilante on 11/8/2017 11:02:33 AM&lt;br /&gt;
&lt;p&gt;When creating new MySQL database table it is important to create a primary key or unique index. &amp;nbsp;When a primary key or unique index exists, lookup and count operations will be more efficient.&lt;/p&gt;
&lt;p&gt;A &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_primary_key"&gt;primary key&lt;/a&gt; is a column that can uniquely identify every row in the table. If there is no natural key, then &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_auto_increment"&gt;auto-increment&lt;/a&gt; can be used to create a synthetic key.&lt;/p&gt;
&lt;p&gt;If it is still not possible to create a primary key then a &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_unique_index"&gt;unique index&lt;/a&gt; should be created. &amp;nbsp;A unique index is a column or set of columns that is known to be unique.&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Adding a Primary Key to a New Table In phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When creating a new table in phpMyAdmin, select PRIMARY from the Index dropdown on the column that will be the primary key. &amp;nbsp;Check the box in the A_I column if this will be an auto incrementing key.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/6114.2017_2D00_11_2D00_07_5F00_16_2D00_26_2D00_03.png"&gt;&lt;img src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-13/6114.2017_2D00_11_2D00_07_5F00_16_2D00_26_2D00_03.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Adding a Primary Key to an Existing Table in phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;While on the Structure tab for the table, click Primary in the Action column next to the column name.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_30_2D00_05.png"&gt;&lt;img src="/resized-image/__size/1027x240/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_30_2D00_05.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When prompted, click OK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_31_2D00_17.png"&gt;&lt;img src="/resized-image/__size/952x386/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_31_2D00_17.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Creating a Unique Key in phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The easiest way to create a unique key in phpMyAdmin is to create the table first. &amp;nbsp;Once the table is created, select the check boxes next to the columns that are unique when combined, and click Unique underneath the table.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_34_2D00_46.png"&gt;&lt;img src="/resized-image/__size/3153x344/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_34_2D00_46.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mysql&lt;/div&gt;
</description></item><item><title>KB-XXXX MySQL Best Practices - Primary Key or unique index on every table</title><link>https://community.appian.com/support/w/kb/693/kb-1413-mysql-best-practices---primary-key-or-unique-index-on-every-table/revision/2</link><pubDate>Wed, 08 Nov 2017 08:57:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83105d85-71af-4281-a9cf-d9677ee15848</guid><dc:creator>Owen Parrish</dc:creator><comments>https://community.appian.com/support/w/kb/693/kb-1413-mysql-best-practices---primary-key-or-unique-index-on-every-table#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Owen Parrish on 11/8/2017 8:57:25 AM&lt;br /&gt;
&lt;p&gt;When creating new MySQL database table it is important to create a primary key or unique index. &amp;nbsp;When a primary key or unique index exists, lookup and count operations will be more efficient.&lt;/p&gt;
&lt;p&gt;A &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_primary_key"&gt;primary key&lt;/a&gt; is a column that can uniquely identify every row in the table. If there is no natural key, then &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_auto_increment"&gt;auto-increment&lt;/a&gt; can be used to create a synthetic key.&lt;/p&gt;
&lt;p&gt;If it is still not possible to create a primary key then a &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_unique_index"&gt;unique index&lt;/a&gt; should be created. &amp;nbsp;A unique index is a column or set of columns that is known to be unique.&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Adding a Primary Key to a New Table In phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When creating a new table in phpMyAdmin, select PRIMARY from the Index dropdown on the column that will be the primary key. &amp;nbsp;Check the box in the A_I column if this will be an auto incrementing key.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/6114.2017_2D00_11_2D00_07_5F00_16_2D00_26_2D00_03.png"&gt;&lt;img src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-13/6114.2017_2D00_11_2D00_07_5F00_16_2D00_26_2D00_03.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Adding a Primary Key to an Existing Table in phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;While on the Structure tab for the table, click Primary in the Action column next to the column name.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_30_2D00_05.png"&gt;&lt;img src="/resized-image/__size/1027x240/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_30_2D00_05.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When prompted, click OK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_31_2D00_17.png"&gt;&lt;img src="/resized-image/__size/952x386/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_31_2D00_17.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Creating a Unique Key in phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The easiest way to create a unique key in phpMyAdmin is to create the table first. &amp;nbsp;Once the table is created, select the check boxes next to the columns that are unique when combined, and click Unique underneath the table.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_34_2D00_46.png"&gt;&lt;img src="/resized-image/__size/3153x344/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_34_2D00_46.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mysql&lt;/div&gt;
</description></item><item><title>KB-XXXX MySQL Best Practices - Primary Key or unique index on every table</title><link>https://community.appian.com/support/w/kb/693/kb-1413-mysql-best-practices---primary-key-or-unique-index-on-every-table/revision/1</link><pubDate>Wed, 08 Nov 2017 01:47:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83105d85-71af-4281-a9cf-d9677ee15848</guid><dc:creator>Owen Parrish</dc:creator><comments>https://community.appian.com/support/w/kb/693/kb-1413-mysql-best-practices---primary-key-or-unique-index-on-every-table#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Owen Parrish on 11/8/2017 1:47:04 AM&lt;br /&gt;
&lt;p&gt;When creating new MySQL database table it is important to create a primary key or unique index. &amp;nbsp;When a primary key or unique index exists, lookup and count operations will be more inefficient.&lt;/p&gt;
&lt;p&gt;A &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_primary_key"&gt;primary key&lt;/a&gt; is a column that can uniquely identify every row in the table. If there is no natural key, then &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_auto_increment"&gt;auto-increment&lt;/a&gt; can be used to create a synthetic key.&lt;/p&gt;
&lt;p&gt;If it is still not possible to create a primary key then a &lt;a href="https://dev.mysql.com/doc/refman/5.7/en/glossary.html#glos_unique_index"&gt;unique index&lt;/a&gt; should be created. &amp;nbsp;A unique index is a column or set of columns that is known to be unique.&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Adding a Primary Key to a New Table In phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When creating a new table in phpMyAdmin, select PRIMARY from the Index dropdown on the column that will be the primary key. &amp;nbsp;Check the box in the A_I column if this will be an auto incrementing key.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/6114.2017_2D00_11_2D00_07_5F00_16_2D00_26_2D00_03.png"&gt;&lt;img src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-13/6114.2017_2D00_11_2D00_07_5F00_16_2D00_26_2D00_03.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Adding a Primary Key to an Existing Table in phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;While on the Structure tab for the table, click Primary in the Action column next to the column name.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_30_2D00_05.png"&gt;&lt;img src="/resized-image/__size/1027x240/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_30_2D00_05.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;When prompted, click OK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_31_2D00_17.png"&gt;&lt;img src="/resized-image/__size/952x386/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_31_2D00_17.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Creating a Unique Key in phpMyAdmin&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The easiest way to create a unique key in phpMyAdmin is to create the table first. &amp;nbsp;Once the table is created, select the check boxes next to the columns that are unique when combined, and click Unique underneath the table.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_34_2D00_46.png"&gt;&lt;img src="/resized-image/__size/3153x344/__key/communityserver-wikis-components-files/00-00-00-00-13/2017_2D00_11_2D00_07_5F00_16_2D00_34_2D00_46.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mysql&lt;/div&gt;
</description></item></channel></rss>