MySchool

Posted WuXuanKun

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySchool相关的知识,希望对你有一定的参考价值。

USE [MySchool]
GO
/****** Object:  Table [dbo].[Grade]    Script Date: 08/06/2014 15:03:17 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Grade](
    [GradeId] [int] IDENTITY(1,1) NOT NULL,
    [GradeName] [nvarchar](50) NOT NULL,
 CONSTRAINT [PK_Grade_1] PRIMARY KEY CLUSTERED 
(
    [GradeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
 CONSTRAINT [IX_Grade_GradeName] UNIQUE NONCLUSTERED 
(
    [GradeId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[Grade] ON
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (1, NS1)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (2, NS2)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (3, NY2)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (4, N精英班)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (11, Nzhanan)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (12, NS1288无敌班)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (13, N高一二班)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (14, N高一三班)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (15, N高一一班)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (16, N高一1班)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (17, N高一2班)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (18, N高一3班)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (19, Naa)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (20, Nmine)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (21, Nmine)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (22, Nmine)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (23, Nmine)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (26, N无敌S2214)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (27, N无敌S2214)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (28, N好人2214)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (30, Naa)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (31, Nbb)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (32, Ncc)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (33, Ndd)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (34, NS2216)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (48, NS2216第二个班)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (49, NS2216终结版)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (51, NJDBC测试啊啊啊啊)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (52, NJDBC测试啊啊啊啊2)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (53, NJDBC测试啊啊啊啊2)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (54, NDBC啊速度速度)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (55, NDBC阿萨德完全)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (56, NDBC阿萨德完全)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (57, NDBC阿萨德完全)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (58, Naa)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (59, Nbb)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (60, Naaa‘‘‘)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (61, Nccc)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (62, N1)
INSERT [dbo].[Grade] ([GradeId], [GradeName]) VALUES (63, Ns1)
SET IDENTITY_INSERT [dbo].[Grade] OFF
/****** Object:  Table [dbo].[Subject]    Script Date: 08/06/2014 15:03:17 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Subject](
    [SubjectId] [int] IDENTITY(1,1) NOT NULL,
    [SubjectName] [nchar](10) NOT NULL,
    [ClassHour] [int] NULL,
    [GradeId] [int] NOT NULL,
 CONSTRAINT [PK_Subject] PRIMARY KEY CLUSTERED 
(
    [SubjectId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[Subject] ON
INSERT [dbo].[Subject] ([SubjectId], [SubjectName], [ClassHour], [GradeId]) VALUES (1, Noop       , 78, 1)
INSERT [dbo].[Subject] ([SubjectId], [SubjectName], [ClassHour], [GradeId]) VALUES (2, Njava      , 67, 2)
INSERT [dbo].[Subject] ([SubjectId], [SubjectName], [ClassHour], [GradeId]) VALUES (3, NC#        , 78, 3)
INSERT [dbo].[Subject] ([SubjectId], [SubjectName], [ClassHour], [GradeId]) VALUES (4, N分层开发      , 24, 2)
SET IDENTITY_INSERT [dbo].[Subject] OFF
/****** Object:  Table [dbo].[Student]    Script Date: 08/06/2014 15:03:17 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Student](
    [StudentNo] [int] IDENTITY(1000,1) NOT NULL,
    [LoginPwd] [nvarchar](50) NOT NULL,
    [StudentName] [nvarchar](50) NOT NULL,
    [Gender] [char](1) NULL,
    [GradeId] [int] NOT NULL,
    [Phone] [nvarchar](255) NULL,
    [Address] [nvarchar](255) NULL,
    [Birthday] [datetime] NULL,
    [Email] [nvarchar](50) NULL,
    [MyTT] [int] NULL,
 CONSTRAINT [PK_Student] PRIMARY KEY CLUSTERED 
(
    [StudentNo] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
SET IDENTITY_INSERT [dbo].[Student] ON
INSERT [dbo].[Student] ([StudentNo], [LoginPwd], [StudentName], [Gender], [GradeId], [Phone], [Address], [Birthday], [Email], [MyTT]) VALUES (23, N000000, N灰太狼2222, N1, 2, N23, N中国平安啊啊, CAST(0x0000759800000000 AS DateTime), N好@3, 1)
INSERT [dbo].[Student] ([StudentNo], [LoginPwd], [StudentName], [Gender], [GradeId], [Phone], [Address], [Birthday], [Email], [MyTT]) VALUES (23213, N000000, N李金香好人, N0, 3, N13835231533/13503542995, N北京海淀区北宫门, CAST(0x0000759800000000 AS DateTime), N[email protected], NULL)
INSERT [dbo].[Student] ([StudentNo], [LoginPwd], [StudentName], [Gender], [GradeId], [Phone], [Address], [Birthday], [Email], [MyTT]) VALUES (23219, N000000, N美洋洋222, N0, 2, N6666666, N北京市海淀区, CAST(0x000081D500000000 AS DateTime), N[email protected], NULL)
INSERT [dbo].[Student] ([StudentNo], [LoginPwd], [StudentName], [Gender], [GradeId], [Phone], [Address], [Birthday], [Email], [MyTT]) VALUES (23225, N000000, N张靓颖, N0, 2, N13503001234, N北京市海淀区, CAST(0x0000A1E5009B6025 AS DateTime), N[email protected], NULL)
INSERT [dbo].[Student] ([StudentNo], [LoginPwd], [StudentName以上是关于MySchool的主要内容,如果未能解决你的问题,请参考以下文章

MySchool

Myschool乱码问题

优化MySchool总结习题

优化MySchool总结习题

优化MySchool数据库设计—SQL编程,学习回顾用

ACCP7.0优化MYSCHOOL数据库设计内测笔试题总结