数据库20170907

Posted

tags:

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

GO
create table Department(
Dep_Id CHAR(3) constraint PK_Dep_Id primary key not null,
Depname VarChar(40) not null,
Telephone char(16) null,
Fax char(16) null
)
GO
GO
create table Employee(
Emp_ID Char(6) constraint PK_Emp_Id primary key,
Empname Varchar(10) constraint NU_Empname not null,
Sex char(2) constraint CK_Sex check(Sex =‘男‘ or Sex =‘女‘),
Birthday DATE,
Dep_Id char(3) references Department (Dep_Id),
Prof varchar(10),
Phone varchar (20),
Email varchar(20),
Onjob BIT constraint DF_Onjob default 1
)
GO
GO
create table Salary(
Emp_Id char(6) references Employee(Emp_Id),
Month char(6),
Base decimal(10,2),
Bonus decimal(10,2),
Benefit decimal(10,2),
Yfgz AS (Base+Bonus+Benefit)PERSISTED,
Insurance decimal(10,2),
Tax decimal(10,2),
Sfgz as (Base+Bonus+Benefit-Insurance-Tax)PERSISTED,
primary key(Emp_Id,Month)
)
GO
select * from Department

以上是关于数据库20170907的主要内容,如果未能解决你的问题,请参考以下文章

20170907wdVBA_ImportPicturesBaseOnExcel

20170907

20170907笔记:JS对象&jQuery对象转换

20170907-构建之法:现代软件工程-阅读笔记(补)

ios - 视图 渐变

vue中怎么让highcharts重绘?