From 508f0836f0255cf34c9edfda4a687e42dd732bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E5=AE=97=E5=B8=85?= <10033721+TXYforever@user.noreply.gitee.com> Date: Fri, 16 Sep 2022 03:03:59 +0000 Subject: [PATCH] =?UTF-8?q?14=20=E9=83=91=E5=AE=97=E5=B8=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郑宗帅 <> --- .../\344\275\234\344\270\232.sql" | 26 +++++++++++++++++++ .../\347\254\224\350\256\260.txt" | 1 + 2 files changed, 27 insertions(+) create mode 100644 "\351\203\221\345\256\227\345\270\205/\344\275\234\344\270\232.sql" create mode 100644 "\351\203\221\345\256\227\345\270\205/\347\254\224\350\256\260.txt" diff --git "a/\351\203\221\345\256\227\345\270\205/\344\275\234\344\270\232.sql" "b/\351\203\221\345\256\227\345\270\205/\344\275\234\344\270\232.sql" new file mode 100644 index 0000000..221b163 --- /dev/null +++ "b/\351\203\221\345\256\227\345\270\205/\344\275\234\344\270\232.sql" @@ -0,0 +1,26 @@ + + create database DBTEST + use DBTEST + create table sectionInfo( + sectionID int primary key not null identity(1,1), + sectionName varchar(20) not null + + ); + +create table userInfo( + userNo int primary key not null identity(1,1), + userName varchar(20) not null check(len(userName)>4)unique, + userSex varchar(2) not null default('男') check( userSex='男' or userSex='女'), + userAge int not null check(len(userAge)>1 and len(userAge)<100), + userAddress varchar(50) default('湖南'), + userSection int references sectionInfo(sectionID), + +); + +create table workInfo( + workId int primary key not null identity(1,1), + userId int not null references userInfo(userNo), + workTime datetime not null, + workDescription varchar(40) not null check(workDescription='迟到' or workDescription='早退' or workDescription='旷工' or workDescription='病假'), + +); diff --git "a/\351\203\221\345\256\227\345\270\205/\347\254\224\350\256\260.txt" "b/\351\203\221\345\256\227\345\270\205/\347\254\224\350\256\260.txt" new file mode 100644 index 0000000..35f29a8 --- /dev/null +++ "b/\351\203\221\345\256\227\345\270\205/\347\254\224\350\256\260.txt" @@ -0,0 +1 @@ +虽然不知道学了什么,但是感觉是很充实的一天 \ No newline at end of file -- Gitee