SQL not accepting AUTO_INCREMENT

58 Views Asked by At

New programming learner here. I am trying to create a table for blood donors, and have the id be automatically incremented upon registering new donors, but sql gives an error around auto_increment as the screenshot shows. [Screenshot of the error]

enter image description here

1

There are 1 best solutions below

1
geldek On BEST ANSWER

From the screenshot, I am assuming it is a SQLite database. SQLite uses the keyword "AUTOINCREMENT", not "AUTO_INCREMENT".