⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 personinfo.sql

📁 十分好的一个医院管理系统
💻 SQL
字号:
create table personinfo(
unitcode char(6) not null,		//单位登记号
personcode char(12) not null,	//个人登记号
iccard char(10) null,		//IC卡号
district char(24) not null,	//单位属地:市区/乡镇
unittype char(24) not null,	//单位类型:国有企业/机关单位、社会团体
persontype char(24) not null,	//个人类型:在职职工/退休人员/下岗职工
name char(16) not null,			//姓名
sex tinyint not null,			//性别:1-男;0-女
age tinyint not null,			//年龄
idencode char(18) null,			//身份证号
birthday smalldatetime not null,		//出生日期
audityear smalldatetime not null,	//审核年份
spehossn char(30) null,				//定点医院编号
monwage  numeric(8,2) not null,	//月工资
workmonths smallint not null,		//工作月数
sumwage numeric(8,2) not null,	//工资总额
lastleave numeric(8,2) not null,				//上年个人帐户余额
lastcheck numeric(8,2) not null,				//上年个人帐户结转
thisaddmonth smalldatetime not null,		//本年度个人缴费所缴月份
thisadd numeric(8,2) not null,					//本年个人帐户计入额
thisleave numeric(8,2) not null,				//本年个人帐户余额
inhosorder tinyint not null,					//本年度住院次序
selfconsume numeric(8,2) not null,			//自付段金额
consumeleave numeric(8,2) not null,			//自付段余额
sumclinic numeric(8,2) not null,				//门诊金额
suminhos numeric(8,2) not null,				//住院金额
sumsick numeric(8,2) not null,					//看病金额
unitfund numeric(8,2) not null,				//单位拨款
wbcode char(10) null,					//五笔码
pycode char(10) null,					//拼音码
stateflag tinyint not null,			//状态标志
constraint p_pinfo primary key  nonclustered (personcode) on 'default');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -