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

正文內容

圖書館管理信息系統(tǒng)數(shù)據(jù)庫設計-資料下載頁

2025-05-13 21:30本頁面

【導讀】{ "error_code": 17, "error_msg": "Open api daily request limit reached" }

  

【正文】 =圖書編號 .索書號 and 圖 書編號 .是否在庫 =1 and 出版社 =@出版社 end else begin return all 31 select 書籍信息 .索書號 ,圖書編號 ,書名 ,作者 ,字數(shù) ,出版時間 ,庫存量 ,總冊數(shù) ,定價 ,出版社 from 書籍信息 ,圖書編號 where 書籍信息 .索書號 =圖書編號 .索書號 and 圖書編號 .是否在庫 =1 end end end end end 6) 刪除書籍信息 CREATE procedure P_刪除書籍信息 @圖書編號 int as begin if exists(select * from 圖書編號 where 圖書編號 =@圖書編號 and 是否在庫 =0) begin delete 借閱信息 where 圖書編號 =@圖書編號 end update 書籍信息 set 總冊數(shù) =總冊數(shù) 1,庫存量 =庫存量 1 where 索書號 =(select 圖書編號 .索書號 from 圖書編號 where 圖書編號 =@圖書編號 ) delete 書籍信息 where 索書號 =(select 圖書編號 .索書號 from 圖書編號 where 圖書編號 =@圖書編號 ) and 總冊數(shù) =0 delete 圖書編號 where 圖書編號 =@圖書編號 end 7) 繳納欠費 create procedure P_繳納欠費 @證號 char(10),@繳納金額 money=0 as begin if exists(select * from 讀者信息 where 證號 =@證號 ) begin 32 update 讀者信息 set 欠費 =欠費 @繳納金額 where 證號 =@證號 end else begin print39。用戶 39。+@證號 +39。不存在! 39。 end end 8) 圖書賠償 CREATE procedure P_賠償圖書 @證號 char(10),@圖書編號 int,@圖書價格 money,@上交金額 money as begin if exists(select * from 借閱信息 where 證號 =@證號 and 圖書編號 =@圖書編號 ) begin update 讀者信息 set 欠費 =欠費 +@圖書價格 @上交金額 where 證號 =@證號 exec P_刪 除書籍信息 @圖書編號 end else begin print39。借書證號輸入錯誤,或用戶 39。+@證號 +39。沒有借閱圖書 39。+str(@圖書編號 ) end end 9) 讀者信息查詢 create procedure P_讀者信息查詢 @證號 char(10)=NULL as begin select 證號 ,姓名 ,聯(lián)系方式 ,已借書數(shù)目 as 已借圖書冊數(shù) ,讀者類別 ,能否借書 ,欠費 from 讀者信息 where 證號 =@證號 end 33 10) 讀者注冊 create procedure P_ 讀者注冊 @ 證號 char(10),@ 姓名 varchar(20),@ 密碼 varchar(20)=123456,@聯(lián)系方式 char(50)=NULL, @已借書數(shù)目 int=0,@讀者類別 char(10)=39。學生 39。,@能否借書 bit=1,@欠費 money=0 as begin if exists(select * from 圖書借出限定表 where 讀者類別 =@讀者類別 ) begin insert 讀者信息 values(@證號 ,@姓名 ,@聯(lián)系方式 ,@已借書數(shù)目 ,@讀者類別 ,@能否借書 ,@密碼 ,@欠費 ) end else begin print39。讀者類別不存在,注冊失敗! 39。 end end 11) 讀者注銷 create procedure P_讀者注銷 @證號 char(10),@姓名 varchar(20) as begin if not exists(select * from 借閱信息 where 證號 =@證號 ) begin if exists(select * from 讀者信息 where 證號 =@證號 and 姓名 =@姓名 ) begin if 0=(select 欠費 from 讀者信息 where 證號 =@證號 ) begin delete from 讀者信息 where 證號 =@證號 and 姓名 =@姓名 end else begin print39。還有欠費未上交,不能注銷 !39。 end 34 end else begin print39。證號或姓名輸入有誤! 39。 end end else begin print39。該讀者還有圖書未還,不能注銷! 39。 end end 12) 修改書籍信息 CREATE procedure P_修改書籍信息 @索書號 char(20),@叢書系列 nchar(50), @作者 nchar(50),@責任編輯 nchar(50),@字數(shù) int,@定價 money, @出版時間 datetime,@主題分類 nchar(50),@二級分類 nchar(50), @館內借閱分類 int,@出版社 char(50), @書名 char(50) as begin if (not exists(select * from 書籍信息 where 索書號 =@索書號 ) and @索書號 is not NULL) or (not exists(select * from 叢書系列 where 叢書系列 =@叢書系列 ) AND @叢書系列 is not NULL) or (not exists(select * from 主題分類 where 主題分類 =@主題分類 )and @主題分類 is not NULL) or (not exists(select * from 館內借閱分類 where 館內借閱分類 =@館內借閱分類 )and @館內借閱分類 is not NULL) or (not exists(select * from 主題分類 where 主題分類 =@二級分類 ) and @二級分類 is not NULL ) begin print39。更新失敗 !39。 end else begin 35 update 書籍信息 set 叢書系列 =@叢書系列 ,作者 =@作者 ,責任編輯 =@責任編輯 ,字數(shù) =@字數(shù) ,定價 =@定價 ,出版時間 =@出版時間 , 主題分類 =@主題分類 ,二級分類 =@二級分類 ,館內借閱分類 =@館內借閱分類 ,出版社 =@出版社 where 索書號 =@索書號 print39。更新成功! 39。 end end 13) 查看借閱信息 create procedure P_查看借閱信息 @證號 char(10),@密碼 varchar(20) as begin if exists(select * from 讀者信息 where 證號 =@證號 and 密碼 =@密碼 ) begin select 借閱信息 .*,V_借閱時間 .剩余時間 from 借閱信息 ,V_借閱時間 where 借閱信息 .證號 =V_借閱時間 .證號 and 借閱信息 .證號 =@證號 and 借閱信息 .圖書編號 =V_借閱時間 .圖書編號 end else begin print39。用戶名或密碼錯誤! 39。 end end 14) 修改密碼 create procedure P_ 管 理 員 密 碼 修 改 @ 用戶名 varchar(50),@ 密碼 varchar(50)=123456,@修改后密碼 varchar(50) as begin if exists(select * from 管理者信息 where 用戶名 =@用戶名 and 密碼 =@密碼 ) begin if @密碼 NULL begin update 管理者信息 36 set 密碼 =@修改后密碼 where 密碼 =@密碼 and 用戶名 =@用戶名 print39。密碼修改成功! 39。 end end else begin print39。用戶名或密碼錯誤! 39。 end end 15) 添加出版社信息 CREATE procedure P_添加出版社 @出版社 char(50),@地址 char(50)=NULL,@網(wǎng)址 char(50)=NULL,@E_mail char(50)=NULL as begin if not exists(select * from 出版社信息 where 出版社 =@出版社 ) begin insert into 出版社信息 values(@出版社 ,@地址 ,@網(wǎng)址 ,@E_mail) print39。您添加了一條出版社信息! 39。 end else begin print39。出版社 39。+@出版社 +39。信息已存在! 39。 end end 16) 查看罰款記錄 create procedure P_查看罰款記錄 @證號 char(10) as begin select 罰款記錄表 .證號 ,罰款記錄表 .圖書編號 ,書名 ,罰款記錄表 .超期時間 ,罰款記錄表 .罰款金額 from 罰款記錄表 ,書籍信息 where 證號 =@證號 and 書籍信息 .索書號 in( select 圖書編號 .索書號 from 圖書編號 where 圖書編號 .圖書編號 =罰款記 37 錄表 .圖書編號 ) end 主要觸發(fā)器的創(chuàng)建 借閱信息表中的 delete 觸發(fā)器,用于自動添加罰款記錄,修改讀者信息,圖書編號和書籍信息 CREATE trigger T_還書觸發(fā) on 借閱信息 after delete as begin declare @罰款金額 money,@讀者類型 char(10),@罰款基數(shù) money,@每日金額 money,@過期天數(shù) int,@應歸還日期 datetime declare @證號 char(10),@圖書編號 int set @證號 =(select 證號 from deleted) set @圖書編號 =(select 圖書編號 from deleted) set @讀者類型 =(select 讀者類別 from 讀者信息 where 證號 =@證號 ) set @罰款基數(shù) =(select 罰款基數(shù) from 欠費參數(shù)表 where 讀者類型 =@讀者類型 ) set @每日金額 =(select 每日金額 from 欠費參數(shù)表 where 讀者類型 =@讀者類型 ) set @應歸還日期 =(select 應歸還日期 from deleted) set @過期天數(shù) =DATEDIFF(day,(SELECT CONVERT(char(20), @應 歸還日期 , 120)),(SELECT CONVERT(char(20), getdate(), 120))) if @過期天數(shù) 0 begin set @罰款金額 =@罰款基數(shù) +@每日金額 * @過期天數(shù) insert into 罰款記錄表 values(@證號 ,@圖書編號 ,@過期天數(shù) ,@罰款金額 ) end begin set @罰款金額 = 0 end update 讀者信息 set 已借書數(shù)目 =已借書數(shù)目 1,欠費 =欠費 +@罰款金額 38 where 證號 =@證號 update 讀者信息 set 能否借書 = (@證號 ) where 證號 =@證號 update 圖書編號 set 是否在庫 =1 where 圖書編號 =@圖書編號 update 書籍信息 set 庫存量 =庫存量 +1 where 索書號 =(select 圖書編號 .索書號 from 圖書編號 where 圖書編號 =
點擊復制文檔內容
教學課件相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1