Create table: auto increment primary key : Create Table « Table Index « SQL / MySQL
- SQL / MySQL
- Table Index
- Create Table
Create table: auto increment primary key
Drop table Product;
CREATE TABLE Product
(
ID SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
Name VARCHAR(40) NOT NULL,
PRIMARY KEY (ID)
);
Describe Product;
Related examples in the same category