2015-05-19 

1 创建表插入数据 

Student(S#,Sname,Sage,Ssex) 学生表
Course(C#,Cname,T#) 课程表
SC(S#,C#,score) 成绩表
Teacher(T#,Tname) 教师表

1.1 Student 

 1 Create table Student
 2 (
 3 S# number(4),
 4 Sname varchar2(9) not null,
 5 Ssex varchar2(3),
 6 Sage date,
 7 constraint Student_S#_Pk primary key(S#)
 8 );
 9 
10 insert into Student values(1001,'李志国','',to_date('26-9-1985','dd-mm-yyyy'));
11 insert into Student values(1002,'李甜甜','',to_date('6-2-1987','dd-mm-yyyy'));
12 insert into Student values(1003,'张小燕','',to_date('18-11-1984','dd-mm-yyyy'));
13 insert into Student values(1004,'王菲','',to_date('3-6-1985','dd-mm-yyyy'));
14 insert into Student values(1005,'杜宇','',to_date('25-4-1986','dd-mm-yyyy'));
15 insert into Student values(1006,'彭大生','',to_date('28-12-1988','dd-mm-yyyy'));
16 insert into Student values(1007,'王亮','',to_date('1-8-1983','dd-mm-yyyy'));
17 insert into Student values(1008,'赵婷婷','',to_date('2-2-1984','dd-mm-yyyy')); 
View Code

相关文章:

  • 2021-04-24
  • 2021-07-17
  • 2021-06-30
  • 2021-11-22
  • 2021-08-15
  • 2021-06-30
  • 2021-10-29
  • 2021-09-03
猜你喜欢
  • 2022-12-23
  • 2021-07-15
  • 2022-01-02
  • 2021-08-29
  • 2021-05-25
  • 2022-12-23
  • 2021-12-19
相关资源
相似解决方案