建立時空表

2021-09-20 18:11:36 字數 4312 閱讀 8622

if not exists(select * from sysobjects where name='zdbc_ypda')

create table zdbc_ypda (

dabh char(25) null default '',

rq char(10) null default '',

spmch char(60) null default '',

tongym char(40) null default '',

shpgg varchar(30) null default '',

jixing char(20) null default '',

youxq char(10) null default '',

zhilbz char(80) null default '',

pizhwh char(36) null default '',

cunchtj char(20) null default '',

gllb char(30) null default '',

shengccj char(60) null default '',

jdmd char(200) null default '',

ypbz char(200) null default '',

ypbg char(200) null default '',

ypzh char(200) null default '',

ypyh char(200) null default '',

ypblfy char(200) null default '',

spid char(11) null default '',

username char(12) null default '',

djbh char(15) null default '',

djlx char(4) null default '',

djbs char(3) null default '',

createtime char(20) null default ''

);if not exists(select * from tblist where tbname='zdbc_ypda')

insert into tblist (tbname,chnname,tbtype)

values ('zdbc_ypda','藥品檔案表','業務表');

delete from tbstru where tbname='zdbc_ypda';

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',1,'dabh');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',2,'rq');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',3,'spmch');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',4,'tongym');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',5,'shpgg');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',6,'jixing');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',7,'youxq');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',8,'zhilbz');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',9,'pizhwh');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',10,'cunchtj');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',11,'gllb');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',12,'shengccj');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',13,'jdmd');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',14,'ypbz');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',15,'ypbg');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',16,'ypzh');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',17,'ypyh');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',18,'ypblfy');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',19,'spid');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',20,'username');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',21,'djbh');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',22,'djlx');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',23,'djbs');

insert into tbstru (tbname,xlh,fdname) values ('zdbc_ypda',24,'createtime');

if not exists(select * from fldlist where fdname='gllb')

insert into fldlist (fdname,chnname,fdtype,fdsize,fddec) values ('gllb','管理類別','字元',30,0);

if not exists(select * from fldlist where fdname='jdmd')

insert into fldlist (fdname,chnname,fdtype,fdsize,fddec) values ('jdmd','建檔目的','字元',200,0);

if not exists(select * from fldlist where fdname='ypbz')

insert into fldlist (fdname,chnname,fdtype,fdsize,fddec) values ('ypbz','藥品包裝標籤說明書','字元',200,0);

if not exists(select * from fldlist where fdname='ypbg')

insert into fldlist (fdname,chnname,fdtype,fdsize,fddec) values ('ypbg','藥品變更情況','字元',200,0);

if not exists(select * from fldlist where fdname='ypzh')

insert into fldlist (fdname,chnname,fdtype,fdsize,fddec) values ('ypzh','藥品召回情況','字元',200,0);

if not exists(select * from fldlist where fdname='ypyh')

insert into fldlist (fdname,chnname,fdtype,fdsize,fddec) values ('ypyh','藥品養護情況','字元',200,0);

if not exists(select * from fldlist where fdname='ypblfy')

insert into fldlist (fdname,chnname,fdtype,fdsize,fddec) values ('ypblfy','藥品不良反應情況','字元',200,0);

hive時空鏈戰 時空鏈戰

時空鏈戰是一款韓系動作題材rpg玩法手遊,一款以行動力為核心的策略性戰鬥遊戲,你將運用靈活的移動與攻擊,施展通往勝利的夾攻,在戰場布置英雄,體驗夾攻帶來的快感吧 官方介紹 時空鏈戰 chain strike 由南韓遊戲商com2us研發製作,故事講述了男主角路西安與芬恩為了世界和平而前去阻止帝國的入...

Git穿梭時空

在使用git的時候想把git add新增到暫存區的檔案撤出怎麼辦!或者想回到某個已經提交的版本怎麼辦,更甚者想把工作區的修改撤銷掉又該怎麼辦。這些想法就像穿梭時空一樣不可思議,但這在git裡都是可以實現的!先說把git add新增到暫存區之後,怎麼把檔案怎麼撤出暫存區。可以使用git reset h...

Git 時空穿梭

這次玩一玩git的核心技能 時空穿梭 在quick start中我們了解到,git是乙個版本控制系統,那麼咱們就來控制一下版本。首先,看一下readme.md的版本有哪些。用git log命令檢視 git log readme.md輸出 commit 9624d8b969e4e0e36acd63ea...