T_HR_DISPATCHSITE(外派地点) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FID | 内码 | int | 0 | |||
FNUMBER | 编码 | nvarchar | 80 | ✓ | |||
FMASTERID | 用于分配的内码 | int | ✓ | ||||
FCREATEORGID | 创建组织 | int | ✓ | ||||
FUSEORGID | 使用组织 | int | ✓ | ||||
FCREATORID | 创建人 | int | ✓ | ||||
FMODIFIERID | 修改人 | int | ✓ | ||||
FAUDITORID | 审核人 | int | ✓ | ||||
FFORBIDDERID | 禁用人 | int | ✓ | ||||
FCREATEDATE | 创建日期 | datetime | ✓ | ||||
FMODIFYDATE | 修改日期 | datetime | ✓ | ||||
FAUDITDATE | 审核日期 | datetime | ✓ | ||||
FFORBIDDATE | 禁用日期 | datetime | ✓ | ||||
FDOCUMENTSTATUS | 数据状态 | char | 1 | ✓ | |||
FFORBIDSTATUS | 禁用状态 | char | 1 | ✓ |
--建表脚本--
create table T_HR_DISPATCHSITE(
FID int not null comment '内码'
,FNUMBER nvarchar(80) default null comment '编码'
,FMASTERID int default null comment '用于分配的内码'
,FCREATEORGID int default null comment '创建组织'
,FUSEORGID int default null comment '使用组织'
,FCREATORID int default null comment '创建人'
,FMODIFIERID int default null comment '修改人'
,FAUDITORID int default null comment '审核人'
,FFORBIDDERID int default null comment '禁用人'
,FCREATEDATE datetime default null comment '创建日期'
,FMODIFYDATE datetime default null comment '修改日期'
,FAUDITDATE datetime default null comment '审核日期'
,FFORBIDDATE datetime default null comment '禁用日期'
,FDOCUMENTSTATUS char(1) default null comment '数据状态'
,FFORBIDSTATUS char(1) default null comment '禁用状态'
,primary key (FID)
) comment = '外派地点'
--查询--
select FID as "fid",FNUMBER as "fnumber",FMASTERID as "fmasterid",FCREATEORGID as "fcreateorgid",FUSEORGID as "fuseorgid",FCREATORID as "fcreatorid",FMODIFIERID as "fmodifierid",FAUDITORID as "fauditorid",FFORBIDDERID as "fforbidderid",FCREATEDATE as "fcreatedate",FMODIFYDATE as "fmodifydate",FAUDITDATE as "fauditdate",FFORBIDDATE as "fforbiddate",FDOCUMENTSTATUS as "fdocumentstatus",FFORBIDSTATUS as "fforbidstatus" from T_HR_DISPATCHSITE
--查询(中文字段)--
select FID as "内码",FNUMBER as "编码",FMASTERID as "用于分配的内码",FCREATEORGID as "创建组织",FUSEORGID as "使用组织",FCREATORID as "创建人",FMODIFIERID as "修改人",FAUDITORID as "审核人",FFORBIDDERID as "禁用人",FCREATEDATE as "创建日期",FMODIFYDATE as "修改日期",FAUDITDATE as "审核日期",FFORBIDDATE as "禁用日期",FDOCUMENTSTATUS as "数据状态",FFORBIDSTATUS as "禁用状态" from T_HR_DISPATCHSITE
--INSERT脚本--
insert into T_HR_DISPATCHSITE(FID,FNUMBER,FMASTERID,FCREATEORGID,FUSEORGID,FCREATORID,FMODIFIERID,FAUDITORID,FFORBIDDERID,FCREATEDATE,FMODIFYDATE,FAUDITDATE,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_HR_DISPATCHSITE set FID=?,FNUMBER=?,FMASTERID=?,FCREATEORGID=?,FUSEORGID=?,FCREATORID=?,FMODIFIERID=?,FAUDITORID=?,FFORBIDDERID=?,FCREATEDATE=?,FMODIFYDATE=?,FAUDITDATE=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=? where FID=?
--delete脚本--
delete from T_HR_DISPATCHSITE where FID=?
--给字段加备注--
alter table T_HR_DISPATCHSITE comment '外派地点';
alter table T_HR_DISPATCHSITE modify column FID int not null comment '内码';
alter table T_HR_DISPATCHSITE modify column FNUMBER nvarchar(80) default null comment '编码';
alter table T_HR_DISPATCHSITE modify column FMASTERID int default null comment '用于分配的内码';
alter table T_HR_DISPATCHSITE modify column FCREATEORGID int default null comment '创建组织';
alter table T_HR_DISPATCHSITE modify column FUSEORGID int default null comment '使用组织';
alter table T_HR_DISPATCHSITE modify column FCREATORID int default null comment '创建人';
alter table T_HR_DISPATCHSITE modify column FMODIFIERID int default null comment '修改人';
alter table T_HR_DISPATCHSITE modify column FAUDITORID int default null comment '审核人';
alter table T_HR_DISPATCHSITE modify column FFORBIDDERID int default null comment '禁用人';
alter table T_HR_DISPATCHSITE modify column FCREATEDATE datetime default null comment '创建日期';
alter table T_HR_DISPATCHSITE modify column FMODIFYDATE datetime default null comment '修改日期';
alter table T_HR_DISPATCHSITE modify column FAUDITDATE datetime default null comment '审核日期';
alter table T_HR_DISPATCHSITE modify column FFORBIDDATE datetime default null comment '禁用日期';
alter table T_HR_DISPATCHSITE modify column FDOCUMENTSTATUS char(1) default null comment '数据状态';
alter table T_HR_DISPATCHSITE modify column FFORBIDSTATUS char(1) default null comment '禁用状态';
T_HR_DISPATCHSITE_L(外派地点多语言) | |||||||
是否主键 | 字段名 | 字段描述 | 数据类型 | 长度 | 可空 | 缺省值 | 备注 |
✓ | FPKID | 多语言内码 | int | 0 | |||
FID | 主键 | int | 0 | ||||
FLOCALEID | 语言码 | int | ✓ | ||||
FADDRESS | 地址信息 | nvarchar | 255 | ✓ | |||
FDESCRIPTION | 描述 | nvarchar | 255 | ✓ | |||
FNAME | 名称 | nvarchar | 80 | ✓ |
--建表脚本--
create table T_HR_DISPATCHSITE_L(
FPKID int not null comment '多语言内码'
,FID int not null comment '主键'
,FLOCALEID int default null comment '语言码'
,FADDRESS nvarchar(255) default null comment '地址信息'
,FDESCRIPTION nvarchar(255) default null comment '描述'
,FNAME nvarchar(80) default null comment '名称'
,primary key (FPKID)
) comment = '外派地点多语言'
--查询--
select FPKID as "fpkid",FID as "fid",FLOCALEID as "flocaleid",FADDRESS as "faddress",FDESCRIPTION as "fdescription",FNAME as "fname" from T_HR_DISPATCHSITE_L
--查询(中文字段)--
select FPKID as "多语言内码",FID as "主键",FLOCALEID as "语言码",FADDRESS as "地址信息",FDESCRIPTION as "描述",FNAME as "名称" from T_HR_DISPATCHSITE_L
--INSERT脚本--
insert into T_HR_DISPATCHSITE_L(FPKID,FID,FLOCALEID,FADDRESS,FDESCRIPTION,FNAME) values (?,?,?,?,?,?)
--UPDATE脚本--
update T_HR_DISPATCHSITE_L set FPKID=?,FID=?,FLOCALEID=?,FADDRESS=?,FDESCRIPTION=?,FNAME=? where FPKID=?
--delete脚本--
delete from T_HR_DISPATCHSITE_L where FPKID=?
--给字段加备注--
alter table T_HR_DISPATCHSITE_L comment '外派地点多语言';
alter table T_HR_DISPATCHSITE_L modify column FPKID int not null comment '多语言内码';
alter table T_HR_DISPATCHSITE_L modify column FID int not null comment '主键';
alter table T_HR_DISPATCHSITE_L modify column FLOCALEID int default null comment '语言码';
alter table T_HR_DISPATCHSITE_L modify column FADDRESS nvarchar(255) default null comment '地址信息';
alter table T_HR_DISPATCHSITE_L modify column FDESCRIPTION nvarchar(255) default null comment '描述';
alter table T_HR_DISPATCHSITE_L modify column FNAME nvarchar(80) default null comment '名称';
推荐阅读