--建表脚本--
create table T_BAS_FLEXVALUESET(
FID int not null comment 'FID'
,FNUMBER nvarchar(30) not null comment '编码'
,FVALUETYPE nvarchar(36) not null comment '值类型'
,FVALUESOURCE nvarchar(36) default null comment '值来源'
,FDATATYPE nvarchar(36) not null comment '数据类型'
,FDATASTRMAXLEN int default null comment '数据长度'
,FDECIMALPLACES smallint default null comment '小数位数'
,FMINIMUM nvarchar(50) default null comment '最小值'
,FMAXIMUM nvarchar(50) default null comment '最大值'
,FCREATORID int not null comment '创建人'
,FCREATEDATE datetime not null comment '创建日期'
,FAUDITORID int default null comment '审核人'
,FAUDITDATE datetime default null comment '审核日期'
,FMODIFIERID int default null comment '修改人'
,FMODIFYDATE datetime default null comment '修改日期'
,FFORBIDDERID int default null comment '禁用人'
,FFORBIDDATE datetime default null comment '禁用日期'
,FDOCUMENTSTATUS char(1) not null comment '数据状态'
,FFORBIDSTATUS char(1) not null comment '禁用状态'
,FISSYSPRESET char(1) not null comment '系统预设'
,primary key (FID)
) comment = '值集'
--查询--
select FID as "fid",FNUMBER as "fnumber",FVALUETYPE as "fvaluetype",FVALUESOURCE as "fvaluesource",FDATATYPE as "fdatatype",FDATASTRMAXLEN as "fdatastrmaxlen",FDECIMALPLACES as "fdecimalplaces",FMINIMUM as "fminimum",FMAXIMUM as "fmaximum",FCREATORID as "fcreatorid",FCREATEDATE as "fcreatedate",FAUDITORID as "fauditorid",FAUDITDATE as "fauditdate",FMODIFIERID as "fmodifierid",FMODIFYDATE as "fmodifydate",FFORBIDDERID as "fforbidderid",FFORBIDDATE as "fforbiddate",FDOCUMENTSTATUS as "fdocumentstatus",FFORBIDSTATUS as "fforbidstatus",FISSYSPRESET as "fissyspreset" from T_BAS_FLEXVALUESET
--查询(中文字段)--
select FID as "FID",FNUMBER as "编码",FVALUETYPE as "值类型",FVALUESOURCE as "值来源",FDATATYPE as "数据类型",FDATASTRMAXLEN as "数据长度",FDECIMALPLACES as "小数位数",FMINIMUM as "最小值",FMAXIMUM as "最大值",FCREATORID as "创建人",FCREATEDATE as "创建日期",FAUDITORID as "审核人",FAUDITDATE as "审核日期",FMODIFIERID as "修改人",FMODIFYDATE as "修改日期",FFORBIDDERID as "禁用人",FFORBIDDATE as "禁用日期",FDOCUMENTSTATUS as "数据状态",FFORBIDSTATUS as "禁用状态",FISSYSPRESET as "系统预设" from T_BAS_FLEXVALUESET
--INSERT脚本--
insert into T_BAS_FLEXVALUESET(FID,FNUMBER,FVALUETYPE,FVALUESOURCE,FDATATYPE,FDATASTRMAXLEN,FDECIMALPLACES,FMINIMUM,FMAXIMUM,FCREATORID,FCREATEDATE,FAUDITORID,FAUDITDATE,FMODIFIERID,FMODIFYDATE,FFORBIDDERID,FFORBIDDATE,FDOCUMENTSTATUS,FFORBIDSTATUS,FISSYSPRESET) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
--UPDATE脚本--
update T_BAS_FLEXVALUESET set FID=?,FNUMBER=?,FVALUETYPE=?,FVALUESOURCE=?,FDATATYPE=?,FDATASTRMAXLEN=?,FDECIMALPLACES=?,FMINIMUM=?,FMAXIMUM=?,FCREATORID=?,FCREATEDATE=?,FAUDITORID=?,FAUDITDATE=?,FMODIFIERID=?,FMODIFYDATE=?,FFORBIDDERID=?,FFORBIDDATE=?,FDOCUMENTSTATUS=?,FFORBIDSTATUS=?,FISSYSPRESET=? where FID=?
--delete脚本--
delete from T_BAS_FLEXVALUESET where FID=?
--给字段加备注--
alter table T_BAS_FLEXVALUESET comment '值集';
alter table T_BAS_FLEXVALUESET modify column FID int not null comment 'FID';
alter table T_BAS_FLEXVALUESET modify column FNUMBER nvarchar(30) not null comment '编码';
alter table T_BAS_FLEXVALUESET modify column FVALUETYPE nvarchar(36) not null comment '值类型';
alter table T_BAS_FLEXVALUESET modify column FVALUESOURCE nvarchar(36) default null comment '值来源';
alter table T_BAS_FLEXVALUESET modify column FDATATYPE nvarchar(36) not null comment '数据类型';
alter table T_BAS_FLEXVALUESET modify column FDATASTRMAXLEN int default null comment '数据长度';
alter table T_BAS_FLEXVALUESET modify column FDECIMALPLACES smallint default null comment '小数位数';
alter table T_BAS_FLEXVALUESET modify column FMINIMUM nvarchar(50) default null comment '最小值';
alter table T_BAS_FLEXVALUESET modify column FMAXIMUM nvarchar(50) default null comment '最大值';
alter table T_BAS_FLEXVALUESET modify column FCREATORID int not null comment '创建人';
alter table T_BAS_FLEXVALUESET modify column FCREATEDATE datetime not null comment '创建日期';
alter table T_BAS_FLEXVALUESET modify column FAUDITORID int default null comment '审核人';
alter table T_BAS_FLEXVALUESET modify column FAUDITDATE datetime default null comment '审核日期';
alter table T_BAS_FLEXVALUESET modify column FMODIFIERID int default null comment '修改人';
alter table T_BAS_FLEXVALUESET modify column FMODIFYDATE datetime default null comment '修改日期';
alter table T_BAS_FLEXVALUESET modify column FFORBIDDERID int default null comment '禁用人';
alter table T_BAS_FLEXVALUESET modify column FFORBIDDATE datetime default null comment '禁用日期';
alter table T_BAS_FLEXVALUESET modify column FDOCUMENTSTATUS char(1) not null comment '数据状态';
alter table T_BAS_FLEXVALUESET modify column FFORBIDSTATUS char(1) not null comment '禁用状态';
alter table T_BAS_FLEXVALUESET modify column FISSYSPRESET char(1) not null comment '系统预设';
--建表脚本--
create table T_BAS_FLEXVALUESETENTRY(
FENTRYID int not null comment 'FENTRYID'
,FID int not null comment 'FID'
,FSEQ int not null comment '顺序号'
,FNUMBER nvarchar(50) not null comment '编码'
,FFORBIDSTATUS char(1) not null comment '禁用'
,primary key (FENTRYID)
) comment = '值集分录'
--查询--
select FENTRYID as "fentryid",FID as "fid",FSEQ as "fseq",FNUMBER as "fnumber",FFORBIDSTATUS as "fforbidstatus" from T_BAS_FLEXVALUESETENTRY
--查询(中文字段)--
select FENTRYID as "FENTRYID",FID as "FID",FSEQ as "顺序号",FNUMBER as "编码",FFORBIDSTATUS as "禁用" from T_BAS_FLEXVALUESETENTRY
--INSERT脚本--
insert into T_BAS_FLEXVALUESETENTRY(FENTRYID,FID,FSEQ,FNUMBER,FFORBIDSTATUS) values (?,?,?,?,?)
--UPDATE脚本--
update T_BAS_FLEXVALUESETENTRY set FENTRYID=?,FID=?,FSEQ=?,FNUMBER=?,FFORBIDSTATUS=? where FENTRYID=?
--delete脚本--
delete from T_BAS_FLEXVALUESETENTRY where FENTRYID=?
--给字段加备注--
alter table T_BAS_FLEXVALUESETENTRY comment '值集分录';
alter table T_BAS_FLEXVALUESETENTRY modify column FENTRYID int not null comment 'FENTRYID';
alter table T_BAS_FLEXVALUESETENTRY modify column FID int not null comment 'FID';
alter table T_BAS_FLEXVALUESETENTRY modify column FSEQ int not null comment '顺序号';
alter table T_BAS_FLEXVALUESETENTRY modify column FNUMBER nvarchar(50) not null comment '编码';
alter table T_BAS_FLEXVALUESETENTRY modify column FFORBIDSTATUS char(1) not null comment '禁用';
--建表脚本--
create table T_BAS_FLEXVALUESETENTRY_L(
FPKID int not null comment 'FPKID'
,FENTRYID int not null comment 'FENTRYID'
,FLOCALEID int not null comment '区域码'
,FNAME nvarchar(50) not null comment '名称'
,FDESCRIPTION nvarchar(50) default null comment '说明'
,primary key (FPKID)
) comment = '值集分录多语言'
--查询--
select FPKID as "fpkid",FENTRYID as "fentryid",FLOCALEID as "flocaleid",FNAME as "fname",FDESCRIPTION as "fdescription" from T_BAS_FLEXVALUESETENTRY_L
--查询(中文字段)--
select FPKID as "FPKID",FENTRYID as "FENTRYID",FLOCALEID as "区域码",FNAME as "名称",FDESCRIPTION as "说明" from T_BAS_FLEXVALUESETENTRY_L
--INSERT脚本--
insert into T_BAS_FLEXVALUESETENTRY_L(FPKID,FENTRYID,FLOCALEID,FNAME,FDESCRIPTION) values (?,?,?,?,?)
--UPDATE脚本--
update T_BAS_FLEXVALUESETENTRY_L set FPKID=?,FENTRYID=?,FLOCALEID=?,FNAME=?,FDESCRIPTION=? where FPKID=?
--delete脚本--
delete from T_BAS_FLEXVALUESETENTRY_L where FPKID=?
--给字段加备注--
alter table T_BAS_FLEXVALUESETENTRY_L comment '值集分录多语言';
alter table T_BAS_FLEXVALUESETENTRY_L modify column FPKID int not null comment 'FPKID';
alter table T_BAS_FLEXVALUESETENTRY_L modify column FENTRYID int not null comment 'FENTRYID';
alter table T_BAS_FLEXVALUESETENTRY_L modify column FLOCALEID int not null comment '区域码';
alter table T_BAS_FLEXVALUESETENTRY_L modify column FNAME nvarchar(50) not null comment '名称';
alter table T_BAS_FLEXVALUESETENTRY_L modify column FDESCRIPTION nvarchar(50) default null comment '说明';
--建表脚本--
create table T_BAS_FLEXVALUESET_L(
FPKID int not null comment 'FPKID'
,FID int not null comment 'FID'
,FLOCALEID int not null comment '区域码'
,FNAME nvarchar(30) not null comment '名称'
,FDESCRIPTION nvarchar(200) default null comment '描述'
,primary key (FPKID)
) comment = '值集多语言'
--查询--
select FPKID as "fpkid",FID as "fid",FLOCALEID as "flocaleid",FNAME as "fname",FDESCRIPTION as "fdescription" from T_BAS_FLEXVALUESET_L
--查询(中文字段)--
select FPKID as "FPKID",FID as "FID",FLOCALEID as "区域码",FNAME as "名称",FDESCRIPTION as "描述" from T_BAS_FLEXVALUESET_L
--INSERT脚本--
insert into T_BAS_FLEXVALUESET_L(FPKID,FID,FLOCALEID,FNAME,FDESCRIPTION) values (?,?,?,?,?)
--UPDATE脚本--
update T_BAS_FLEXVALUESET_L set FPKID=?,FID=?,FLOCALEID=?,FNAME=?,FDESCRIPTION=? where FPKID=?
--delete脚本--
delete from T_BAS_FLEXVALUESET_L where FPKID=?
--给字段加备注--
alter table T_BAS_FLEXVALUESET_L comment '值集多语言';
alter table T_BAS_FLEXVALUESET_L modify column FPKID int not null comment 'FPKID';
alter table T_BAS_FLEXVALUESET_L modify column FID int not null comment 'FID';
alter table T_BAS_FLEXVALUESET_L modify column FLOCALEID int not null comment '区域码';
alter table T_BAS_FLEXVALUESET_L modify column FNAME nvarchar(30) not null comment '名称';
alter table T_BAS_FLEXVALUESET_L modify column FDESCRIPTION nvarchar(200) default null comment '描述';
--建表脚本--
create table T_BAS_FLEX_L(
FPKID int not null comment 'FPKID'
,FID int not null comment 'FID'
,FLOCALEID int not null comment '区域码'
,FNAME nvarchar(30) not null comment '弹性域名称'
,FDESCRIPTION nvarchar(200) default null comment '描述'
,primary key (FPKID)
) comment = '弹性域多语言'
--查询--
select FPKID as "fpkid",FID as "fid",FLOCALEID as "flocaleid",FNAME as "fname",FDESCRIPTION as "fdescription" from T_BAS_FLEX_L
--查询(中文字段)--
select FPKID as "FPKID",FID as "FID",FLOCALEID as "区域码",FNAME as "弹性域名称",FDESCRIPTION as "描述" from T_BAS_FLEX_L
--INSERT脚本--
insert into T_BAS_FLEX_L(FPKID,FID,FLOCALEID,FNAME,FDESCRIPTION) values (?,?,?,?,?)
--UPDATE脚本--
update T_BAS_FLEX_L set FPKID=?,FID=?,FLOCALEID=?,FNAME=?,FDESCRIPTION=? where FPKID=?
--delete脚本--
delete from T_BAS_FLEX_L where FPKID=?
--给字段加备注--
alter table T_BAS_FLEX_L comment '弹性域多语言';
alter table T_BAS_FLEX_L modify column FPKID int not null comment 'FPKID';
alter table T_BAS_FLEX_L modify column FID int not null comment 'FID';
alter table T_BAS_FLEX_L modify column FLOCALEID int not null comment '区域码';
alter table T_BAS_FLEX_L modify column FNAME nvarchar(30) not null comment '弹性域名称';
alter table T_BAS_FLEX_L modify column FDESCRIPTION nvarchar(200) default null comment '描述';
推荐阅读