One piece of SQL functionality that doesn’t appear to have any consistency or an ANSI SQL Standard is the management of system generated sequential numbers, used for example in suggorate keys.
MySQL uses AUTO_INCREMENT which serves the purposes adequately, however in my documenting of differences with Oracle in my upcoming MySQL Conference presentation “MySQL for Oracle Developers” there a number of key differences with Oracle’s SEQUENCE usage.
MySQL AUTO_INCREMENT to Oracle SEQUENCE Differences
- AUTO_INCREMENT is limited to one column per table
- AUTO_INCREMENT must be assigned to a specific table.column (not allowing multi table use) …