注册 登录
编程论坛 SQL Server论坛

[求助]match子句

李彬 发布于 2006-11-06 10:36, 876 次点击

create table 业务员信息
(业务员编号 int not null primary key,
业务员姓名 nvarchar(20) not null
)

create table 顾客信息
(
顾客编号 int not null primary key,
顾客姓名 nvarchar(20) not null,
所属业务员编号 int not null,
constraint 外键约束
foreign key (所属业务员编号)
references 业务员信息(业务员编号)
match full
)

服务器: 消息 170,级别 15,状态 1,行 13
第 13 行: 'match' 附近有语法错误。

我想问下错在那里啊?

3 回复
#2
李彬2006-11-06 14:33

怎么我提的发几个问题都没有回答了,各位版主们出来帮帮我们这些新手吧!

#3
LouisXIV2006-11-07 07:40

SQL Server没有Match函数 你从哪里看来这样的写法??

#4
李彬2006-11-08 11:38

我在书上面看到的,这个是外键约束(foreign)的子句啊,这个用来限制外键中的null值!

1