Here's the code to my simple database:
CREATE TABLE [dbo].[User_Info] (
[Username] NVARCHAR (50) NOT NULL,
[Password] NVARCHAR (50) NOT NULL,
[Firstname] NVARCHAR (50) NOT NULL,
[Lastname] NVARCHAR (50) NOT NULL,
[Email] NVARCHAR (50) NOT NULL,
[Country] NVARCHAR (50) NOT NULL,
[Phone] NVARCHAR (50) NOT NULL,
[Gender] NVARCHAR (50) NOT NULL,
[Admin] INT NULL,
PRIMARY KEY CLUSTERED ([Username] ASC)
);
SELECT GO * from User_Info;
Alter table User_Info
add column id int NOT NULL auto_increment Unique Key;
The error for this CREATE
is:
Only 1 statement is allowed per batch, such as 'GO', might be required between statements
and the error for the column
is:
Incorrect syntax near 'column'
I need an auto ID system so I can progress with my site, how can I fix this mess?