MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Brian Johnson Date:August 19 2002 8:48pm
Subject:How to create a sequence for an id field
View as plain text  
I have a SQL statement to create a PostgreSQL table that include a line 'id serial'

This line creates a integer field with a sequence atached to it to create an autonumber

Is there a way to create a SQL statement to accomplish this that would work with
both MySQL and PostgreSQL

Thread
How to create a sequence for an id fieldBrian Johnson20 Aug
  • Re: How to create a sequence for an id fieldEgor Egorov20 Aug