Unique Indexes for MySQL -


i'm trying find out i'm missing syntax errors corrected can apply unique index field in table called vehicledrive.

alter table `vehicledrive` add unique `name`; 

i'm receiving error:

you have error in sql syntax; check manual corresponds mysql server version right syntax use near '' @ line 1 

try this:

alter table `vehicledrive` add unique (name); 

sql unique constraint


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -