SQL错误语句

来源:百度知道 编辑:UC知道 时间:2024/06/03 10:39:58
create table st2info
(
id int primary key,
name nvarchar(50) not null,
age int,
)
出现下面的错误
主要错误 0x80040E14,次要错误 25501
> create table st2info
(
id int primary key,
name nvarchar(50) not null,
age int,
)
[ 6,1,) ]
主要错误 0x80040E14,次要错误 25501
> > create table st2info
(
id int primary key,
name nvarchar(50) not null,
age int
)
[ 1,1,> ]

sql mobile 吧

create table st2info
(
id int primary key,
name nvarchar(50) not null,
age int,
)
多了个‘,’

create table st2info
(
id int primary key,
name nvarchar(50) not null,
age int, --这多个逗号了啦,嘿嘿,去掉就好了
)

以上答案是对的,记得写语句时注意细小的细节,不然错了可不好找啊,尤其时逗号和分号…………

st2info表的最后一个字段的结尾不用加分号。不过不加也可以,把错误信息再详细点行不?

最后的age int的逗号不能有