FK_Student_StuCLass_ClassId
foreign key(ClassId) references StuClass(ClassId);
注意:创建表还是约束,与SQL Server基本相同,注意:在Oracle...中default是一个值,而SQL Server中default是一个约束,
因此Oracle的default设置可以在建表的时候创建或者通过Modify函数创建
3、添加模拟的数据
--3、添加模拟的数据...张飞','男',16,2);
insert into Student(StuId,Stuname,Gender,Age,ClassId)
values(3,'刘备','男',18,3);
Oracle...建表语句
create table table_name(
id numner(12),
text verchar2(255 CHAR) not null,