日期:2014-05-17  浏览次数:21254 次

SQL SERVER 中references的问题
create table class
( classid char(10) not null primary key,
deptname varchar(50) not null references department(deptname) )
go
意思是deptname 外连到 department表 里的deptname,这样就把class这个表 和department这个表 连到一起了 
------------------------------------------------------------------
请问在ORACLE中只是把go改成分号吗??

------解决方案--------------------
也可以这样说吧,在SQL Server中 go代表的是一个事务的结束,Oracle中没有go的
Oracle可以加分号 或者再下一行输入‘/’