checkin.sql
来自「十分好的一个医院管理系统」· SQL 代码 · 共 15 行
SQL
15 行
create table checkin( //住院登记表
hoscode char(4) not null, //医院编号
riceiptcode char(20) not null, //住院明细号
unitcode char(6) not null, //单位编号
personcode char(12) not null, //个人编号
sickname char(10) null, //姓名
sex char(2) null, //性别
age integer null, //年龄
department char(16) null, //科室
indate smalldatetime null, //入院时间
outdate smalldatetime null, //出院时间
payflag integer not null, //结算标志:1-已结算,0-未结算
mcflag integer not null, //医保标志:1-医保病人,0-自费病人
updateflag tinyint not null, //上传标志
constraint p_checkin primary key nonclustered (hoscode,riceiptcode) on 'default');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?