my SQL删除主键的语句???
altertable表名dropprimarykey(字段名)是这样写的吗?altertablestudentdropprimarykey(id);altertables...
alter table 表名 drop primary key(字段名)
是这样写的吗?
alter table student drop primary key (id);
alter table student drop primary key id;
alter table student drop primary key ‘id’;
怎么写呀,高手们,帮帮我吧,用了很多种方法都不对,
建表时用的语句是这样的:
CREATE TABLE Student (name varchar(20),id varchar(20) PRIMARY KEY,sex char(2),age int);
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'primary key' at line 1 展开
是这样写的吗?
alter table student drop primary key (id);
alter table student drop primary key id;
alter table student drop primary key ‘id’;
怎么写呀,高手们,帮帮我吧,用了很多种方法都不对,
建表时用的语句是这样的:
CREATE TABLE Student (name varchar(20),id varchar(20) PRIMARY KEY,sex char(2),age int);
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'primary key' at line 1 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询