你写错了,改正为这样:
Create Table Department
(
Dept_no Numeric NOT NULL Constraint Nodex Unique Nonclustered(dept_no),
Department NVarchar(20) NOT NULL,
location NVarchar(30),
Phone_no NVarchar(20)
)
Create Table Department
(
Dept_no Numeric NOT NULL Constraint Nodex Unique Nonclustered(dept_no),
Department NVarchar(20) NOT NULL,
location NVarchar(30),
Phone_no NVarchar(20)
)
那么从表是不是也自动写入。不知是否看明白了我的意思