排课系统数据库报告(18)

时间:2025-01-19

-

[classname] [nchar](20) NOT NULL,

CONSTRAINT [PK_class] PRIMARY KEY CLUSTERED

(

[classID] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY]

2)course表

CREATE TABLE [dbo].[course](

[courseID] [int] NOT NULL,

[coursename] [nchar](20) NOT NULL,

[teacherID] [int] NULL,

CONSTRAINT [PK_course] PRIMARY KEY CLUSTERED

(

[coursename] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY]

ALTER TABLE [dbo].[course] WITH CHECK ADD CONSTRAINT [FK_course_teacher1] FOREIGN KEY([teacherID])

REFERENCES [dbo].[teacher] ([teacherID])

ALTER TABLE [dbo].[course] CHECK CONSTRAINT [FK_course_teacher1]

3)student表

CREATE TABLE [dbo].[student](

[studentID] [int] NOT NULL,

[name] [nchar](10) NOT NULL,

[sex] [nchar](2) NULL,

[birthday] [datetime] NULL,

[classID] [int] NULL,

CONSTRAINT [PK_student] PRIMARY KEY CLUSTERED

(

[studentID] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY]

- .

- 总结资料-

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219