Creating MySQL sequence example

The following statement creates a table named employees that has the emp_no column is an AUTO_INCREMENT column:

 CREATE TABLE employees (    
emp_no INT AUTO_INCREMENT PRIMARY KEY,    
first_name VARCHAR(50),    
last_name VARCHAR(50)
);

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Design a site like this with WordPress.com
Get started