freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

數(shù)據(jù)庫課設醫(yī)院信息管理系統(tǒng)報告-閱讀頁

2024-08-26 06:30本頁面
  

【正文】 varchar(10) null, 備注 varchar(20) null, constraint PK_藥品信息primary key nonclustered (藥品編號))go/*==============================================================*//* Index: 屬于_藥品類型_FK *//*==============================================================*/create index 屬于_藥品類型_FK on 藥品信息(類型編號ASC)go/*==============================================================*//* Table: 藥品庫存 *//*==============================================================*/create table 藥品庫存( 藥品編號 varchar(20) not null, 名稱 varchar(10) null, 庫存數(shù)量 varchar(10) null, 入庫單價 varchar(12) null, 出庫單價 varchar(12) null, constraint PK_藥品庫存primary key nonclustered (藥品編號))go/*==============================================================*//* Table: 藥品種類 *//*==============================================================*/create table 藥品種類( 藥品編號 varchar(20) not null, 配藥單編號 varchar(10) null, 處方編號 varchar(10) null, 名稱 varchar(10) null, 配藥數(shù)量 varchar(10) null, constraint PK_藥品種類primary key nonclustered (藥品編號))go/*==============================================================*//* Index: 包括_FK *//*==============================================================*/create index 包括_FK on 藥品種類(處方編號ASC)go/*==============================================================*//* Index: 包括_FK *//*==============================================================*/create index 包括_FK on 藥品種類(配藥單編號ASC)go/*==============================================================*//* Table: 藥品類型 *//*==============================================================*/create table 藥品類型( 類型編號 varchar(10) not null, 類型名 varchar(10) null, 庫存位置 varchar(20) null, constraint PK_藥品類型primary key nonclustered (類型編號))go/*==============================================================*//* Table: 配藥單 *//*==============================================================*/create table 配藥單( 配藥單編號 varchar(10) not null, 藥品編號 varchar(20) null, 病人編號 varchar(10) null, 收費員編號 varchar(10) null, 收費金額 money null, 收費時間 datetime null, 備注 varchar(20) null, constraint PK_配藥單primary key nonclustered (配藥單編號))go/*==============================================================*//* Index: 配藥_FK *//*==============================================================*/create index 配藥_FK on 配藥單(收費員編號ASC)go/*==============================================================*//* Index: 領取_配藥單_FK *//*==============================================================*/create index 領取_配藥單_FK on 配藥單(病人編號ASC)go/*==============================================================*//* Index: 包括_FK *//*==============================================================*/create index 包括_FK on 配藥單(藥品編號ASC)go建立完整性約束alter table 病人add constraint check_病人性別 check (病人性別 in (39。,39。)),constraint check_病人電話 check(病人電話 like (39。)),constraint check_身份證號碼 check(身份證號碼 like (39。))goalter table 醫(yī)生add constraint check_性別 check (性別 in (39。,39。)),constraint check_電話 check(電話like (39。)) 創(chuàng)建觸發(fā)器,當藥品入庫、出庫時自動修改庫存創(chuàng)建觸發(fā)器,當藥品入庫、出庫時自動修改庫存出庫create trigger export_medicine on 藥品種類 for insertasbegindeclare t int,num int,num1 intset t=(select from inserted)select num=from 藥品種類select num1=from 藥品庫存if(num1=num)beginselect num1=num1numfrom 藥品種類,藥品庫存where = and =tendelsebegin print39。 rollback transaction end update 藥品庫存set 庫存數(shù)量=num1where 藥品編號=t。配藥數(shù)量已超過庫存數(shù)量!39。end,各科室的就診人數(shù)和輸入情況create procedure num_counttime1 datetime,time2 datetimeasbeginselect ,count() as 病人人數(shù),time1 開始時間,time2 結束時間from 科室,病人where = 醫(yī)治時間=time1 and 醫(yī)治時間=time2group by ,end exec num_count 39。,39。創(chuàng)建視圖查詢各種藥品的庫存總數(shù)create view 藥品庫存總數(shù)()asselect 庫存數(shù)量from 藥品庫存數(shù)據(jù)庫的實施和維護:由原始的數(shù)據(jù)可以得到編碼調試為:select *from 病人select *from 處方表select *from 科室select *from 配藥單select *from 收費員select *from 藥品庫存select *from 藥品類型select *from 藥品信息select *from 藥品種類select *from 醫(yī)生建立觸發(fā)器 (1) 執(zhí)行:(2)執(zhí)行: 建立存儲過程由以上數(shù)據(jù)分析可以知道這個醫(yī)院信息管理系統(tǒng)具有可行性。這樣,萬一數(shù)據(jù)庫遭到破壞時可以及時地將其恢復。 隨著時間的推移,數(shù)據(jù)庫系統(tǒng)的應用環(huán)境會發(fā)生變化,DBA應根據(jù)實際情況調整數(shù)據(jù)庫的安全性和完整性要求。在數(shù)據(jù)庫系統(tǒng)的運行過程中,DBA需密切關注系統(tǒng)的性能,監(jiān)視系統(tǒng)的運行,并對監(jiān)測數(shù)據(jù)進行分析,不斷改進系統(tǒng)的性能。另外,數(shù)據(jù)庫系統(tǒng)的應用環(huán)境是不斷變化的,經(jīng)常會出現(xiàn)一些新的應用,也會消除一些舊的應用,這將導致出現(xiàn)新實體并淘汰舊實體,同時原先實體的屬性和實體間的聯(lián)系也會發(fā)生變化,因此,需要局部地調整數(shù)據(jù)庫的邏輯結構,增加一些新的關系,刪除一些舊的關系,或在某些關系中增加(或刪除)一些屬性等。數(shù)據(jù)庫安全性設計(1) 為了保證數(shù)據(jù)庫應用系統(tǒng)安全、可靠地運行,數(shù)據(jù)庫系統(tǒng)也應采取一定的安全保護措施。用戶驗證用的是軟件驗證技術和硬件驗證技術2種。對于存取控制就是給不同身份的人給與不同的權限,系統(tǒng)管理員就要建立用戶,信息更新修改,維修系統(tǒng)等權限。20094140220639。20094140220639。一開始,在需求分析的時候,我對其功能要求做了很多次的修改,最后才確定
點擊復制文檔內容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1