Jump to content

Unique key problem


sivanath.nagendran

Recommended Posts

here are all the options when creating a column

olumn_definition:	col_name data_type [NOT NULL | NULL] [DEFAULT default_value]	  [AUTO_INCREMENT] [UNIQUE [KEY] | [PRIMARY] KEY]	  [COMMENT 'string'] [reference_definition]

Link to comment
Share on other sites

You need to define the column as a primary key, and give it the auto_increment option. The datatype needs to be an integer. If you are using something like phpMyAdmin to set up the database then you can do it graphically, or else you need to write the SQL to do it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...