4
edits
JohnVeness (talk | contribs) (→PHP) Tag: 2017 source edit |
JohnVeness (talk | contribs) (→Alternative keys: Improve English) |
||
| Line 254: | Line 254: | ||
==Alternative keys== | ==Alternative keys== | ||
Sometimes, we need | Sometimes, we need other unique keys than primary key. When we need this, we can create an alternate unique key. Such a key should have a name that starts with <tt>uk_</tt>, then the table name (this is required to avoid duplicate names of unique keys that may create problems for some DBMS like Postgresql) and then another string to define the key (this is to allow having several unique keys on the same table). | ||
Example: | Example: | ||
edits