llzknight 发表于 2014-5-29 20:22:17

先标记后看看,这个不用注册当然要支持,

lambun 发表于 2014-5-29 20:31:08

好用吗?    ABVFDAFDSFAFAFSFS

kdp 发表于 2014-5-29 20:54:20


好东西看看是不是能用,感谢:lol

kdp 发表于 2014-5-29 21:04:23

:)
好东西看看是不是能用,感谢

huyaoin 发表于 2014-5-29 22:50:47

看看,这个不会又被和谐了吧。

chkl8311 发表于 2014-5-29 23:44:34

好东西下了再说。。。。。。。。

dasdsad 发表于 2014-5-29 23:48:20

fsfsdfsdfsdfsdfsdsadasdasdasdasdas

houjun 发表于 2014-5-30 00:22:45

不错,就是不知道好不好用了

Miracles丶kylin 发表于 2014-5-30 12:55:43

if exists (select 1
            fromsysobjects
         whereid = object_id('v_Score')
            and   type = 'V')
   drop view v_Score
go

if exists (select 1
            fromsysobjects
         whereid = object_id('v_Teaching')
            and   type = 'V')
   drop view v_Teaching
go

if exists (select 1
            fromsysobjects
         whereid = object_id('Course')
            and   type = 'U')
   drop table Course
go

if exists (select 1
            fromsysobjects
         whereid = object_id('Elective')
            and   type = 'U')
   drop table Elective
go

if exists (select 1
            fromsysobjects
         whereid = object_id('Notice')
            and   type = 'U')
   drop table Notice
go

if exists (select 1
            fromsysobjects
         whereid = object_id('Student')
            and   type = 'U')
   drop table Student
go

if exists (select 1
            fromsysobjects
         whereid = object_id('Teacher')
            and   type = 'U')
   drop table Teacher
go

if exists (select 1
            fromsysobjects
         whereid = object_id('Teaching')
            and   type = 'U')
   drop table Teaching
go

if exists(select 1 from systypes where name='Domain_1')
   drop type Domain_1
go

/*==============================================================*/
/* Domain: Domain_1                                             */
/*==============================================================*/
create type Domain_1
   from char(10)
go

/*==============================================================*/
/* Table: Course                                                */
/*==============================================================*/
create table Course (
   CID                  int                  identity,
   Description          nvarchar(Max)      null,
   Grade                nvarchar(10)         null,
   Term               nvarchar(10)         null,
   Credit               int                  null,
   CName                nvarchar(20)         null,
   constraint PK_COURSE primary key (CID)
)
go

/*==============================================================*/
/* Table: Elective                                              */
/*==============================================================*/
create table Elective (
   EID                  int                  identity,
   SID                  int                  null,
   CID                  int                  null,
   Score                float                null,
   constraint PK_ELECTIVE primary key (EID)
)
go

/*==============================================================*/
/* Table: Notice                                                */
/*==============================================================*/
create table Notice (
   NID                  int                  identity,
   NTitle               nvarchar(100)      null,
   NContent             nvarchar(max)      null,
   NAuthor            nvarchar(20)         null,
   NTime                datetime             null default getdate(),
   constraint PK_NOTICE primary key (NID)
)
go

/*==============================================================*/
/* Table: Student                                             */
/*==============================================================*/
create table Student (
   SID                  int                  identity,
   SNo                  char(9)            null,
   SName                nvarchar(8)          null,
   SPwd               varchar(20)          null,
   SSex               nchar(1)             null,
   SClass               varchar(10)          null,
   SType                varchar(10)          null,
   SDepartment          nvarchar(20)         null,
   SMajor               nvarchar(20)         null,
   SMaxNum            int                  null,
   SActualNum         int                  null,
   SBirthday            datetime             null,
   SInTime            datetime             null,
   SGrade               nvarchar(10)         null,
   SNote                nvarchar(100)      null,
   constraint PK_STUDENT primary key (SID)
)
go

/*==============================================================*/
/* Table: Teacher                                             */
/*==============================================================*/
create table Teacher (
   TID                  int                  identity,
   TNo                  char(4)            null,
   TName                nvarchar(8)          null,
   TSex               nchar(1)             null,
   TMajor               nvarchar(20)         null,
   TPwd               nvarchar(20)         null,
   TDepartment          nvarchar(20)         null,
   TTitle               nvarchar(10)         null,
   TIsAdmin             int                  null default 0,
   constraint PK_TEACHER primary key (TID)
)
go

/*==============================================================*/
/* Table: Teaching                                              */
/*==============================================================*/
create table Teaching (
   ID                   int                  identity,
   TID                  int                  null,
   CID                  int                  identity,
   Week               nvarchar(20)         null,
   Timeperiod         nvarchar(20)         null,
   Place                nvarchar(20)         null,
   MaxNum               int                  null,
   ActualNum            int                  null default 0,
   constraint PK_TEACHING primary key (ID)
)
go

/*==============================================================*/
/* View: v_Score                                                */
/*==============================================================*/
create view v_Score as
SELECT   dbo.Student.SID, dbo.Student.SNo, dbo.Student.SName, dbo.Course.CID, dbo.Course.Credit, dbo.Course.CName, dbo.Teaching.Week, dbo.Teaching.Timeperiod,
                      dbo.Teaching.Place, dbo.Teaching.MaxNum, dbo.Teaching.ActualNum, dbo.Elective.Score, dbo.Elective.EID
FROM         dbo.Course INNER JOIN
                      dbo.Elective ON dbo.Course.CID = dbo.Elective.CID INNER JOIN
                      dbo.Student ON dbo.Elective.SID = dbo.Student.SID INNER JOIN
                      dbo.Teaching ON dbo.Course.CID = dbo.Teaching.CID INNER JOIN
                      dbo.Teacher ON dbo.Teaching.TID = dbo.Teacher.TID
go

/*==============================================================*/
/* View: v_Teaching                                             */
/*==============================================================*/
create view v_Teaching as
SELECT   dbo.Student.SID, dbo.Student.SNo, dbo.Student.SName, dbo.Course.CID, dbo.Course.Credit, dbo.Course.CName, dbo.Teaching.Week, dbo.Teaching.Timeperiod,
                      dbo.Teaching.Place, dbo.Teaching.MaxNum, dbo.Teaching.ActualNum, dbo.Elective.Score
FROM         dbo.Course INNER JOIN
                      dbo.Elective ON dbo.Course.CID = dbo.Elective.CID INNER JOIN
                      dbo.Student ON dbo.Elective.SID = dbo.Student.SID INNER JOIN
                      dbo.Teaching ON dbo.Course.CID = dbo.Teaching.CID INNER JOIN
                      dbo.Teacher ON dbo.Teaching.TID = dbo.Teacher.TID
go

天命神佑 发表于 2014-5-30 19:01:37

hao hao hao hao hoah
页: 237 238 239 240 241 242 243 244 245 246 [247] 248 249 250 251 252 253 254 255 256
查看完整版本: Windows8.1专业版_全自动安装/免激活/自动识别40多个品牌”OEM镜像