sql
–1 CREATE DATABASE _2018522018; use _2018522018; year(getdate())-year(Sbirth) –2 create table Student ( Sno char(30) primary key, Sname char(30) unique, Ssex char(2) , Classno char(30), Sbirth datetime, Status char(4), Hometown char(30), Enrollment datetime, Telephone char(30), Resume char(80) ); create table SClass ( ClassNo char(30) primary key, ClassName char(15), Major char(10), Grade char(8), Number int, Advisor char(8) ); create table Course ( CourseNo char(30) primary key, CourseName char(30), Category char(30), Major char(30), Grade char(30), StartTM char(30), Credits int , WeekHours