05-autoincrement.sql 286 B

1234567891011121314
  1. CREATE TABLE students (
  2. ID INTEGER PRIMARY KEY AUTOINCREMENT,
  3. name VARCHAR(25),
  4. major VARCHAR(25)
  5. );
  6. .mode table
  7. .nullvalue NULL
  8. INSERT INTO students(name, major) VALUES('Jack', 'Biology');
  9. INSERT INTO students(name, major) VALUES('Kate', 'Sociology');
  10. SELECT * FROM students;