Oracle 创建表提示缺失右括号 11g版本
createtableStuInfo(StuIDchar(8),SNamenvarchar(10)notnull,Birthdaydatetime,Gendernchar...
create table StuInfo
(
StuID char(8),
SName nvarchar(10) not null,
Birthday datetime,
Gender nchar default(N'男') check(Gender = N'男' or Gender = N'女'),
Address nvarchar(20),
Tel varchar(12),
Zip char(6),
Mark int check(Mark >= 300 and Mark <= 750),
SN varchar(20) unique,
primary key(StuID)
)
错误是 展开
(
StuID char(8),
SName nvarchar(10) not null,
Birthday datetime,
Gender nchar default(N'男') check(Gender = N'男' or Gender = N'女'),
Address nvarchar(20),
Tel varchar(12),
Zip char(6),
Mark int check(Mark >= 300 and Mark <= 750),
SN varchar(20) unique,
primary key(StuID)
)
错误是 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询