![]() |
#2
angeloc2006-12-17 23:20
|
alter table EMP add (dept_id char(3)) constraint my_emp_dept_id_fk foreign kdy (dept_id) references dept(id);
alter table emp add(dept_id char(3)); alter table emp add constraint my_emp_dept_id_fk foreign key (dept_id) references dept(id);
这两种写法是否一样