Creating a table with auto_increment
CREATE TABLE example_autoincrement (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
data VARCHAR(100)
);
CREATE TABLE example_innodb (
id INT,
data VARCHAR(100)
) TYPE=innodb;
CREATE TABLE user_data (
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
user_id varchar(100),
prod_id VARCHAR(100),
created TIMESTAMP DEFAULT NOW()
);