AUTO_INCREMENT column:
mysql>
mysql> CREATE TABLE person
-> (
-> id INT UNSIGNED NOT NULL AUTO_INCREMENT,
-> last_name CHAR(20),
-> first_name CHAR(20),
-> address CHAR(40),
-> PRIMARY KEY (id)
-> );
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> drop table person;
Query OK, 0 rows affected (0.00 sec)
Related examples in the same category