I am with PostgreSQL 9.5 X64 integrated with the open-source Parse Server. My table has the following structure.
objectId (text with fixed 10 characters),
item_id (integer),
item_name (text with various length)
The objectId
is the primary key due to use of Parse Server. It is automatically generated by Parse Server. The item_id
is not a primary key. I would like to have item_id
automatically increment by 1 when a new record is created. How can this be achieved in Create Table?