Answers for "mysql set id auto increment primary key directly while creating the table"

SQL
-1

auto increment psql not primary key

CREATE SEQUENCE cateogry_id_seq;
ALTER TABLE category ALTER COLUMN category_id SET DEFAULT nextval('cateogry_id_seq');
Posted by: Guest on December-05-2020

Code answers related to "mysql set id auto increment primary key directly while creating the table"

Code answers related to "SQL"

Browse Popular Code Answers by Language