当前位置:网站首页>SQL Sever column name or number of supplied values does not match the table definition
SQL Sever column name or number of supplied values does not match the table definition
2022-06-27 07:53:00 【CSDN Q & A】
news 213, Level 16, state 1, The process usp_BorrowBook, That's ok 36 [ Batch start line 2]
The column name or number of values provided does not match the table definition .( How to solve this problem !!1)
This is me sql sever Code for
use BookDBGOALTER procedure usp_BorrowBook @rdID char(9), @bkID char(9)as if not exists(select * from Book where @bkID in (select bkID from Book)) begin raiserror(' The library does not have the book , Borrowing failed ',10,1) return end if not exists(select * from Reader where @rdID in (select rdID from Reader)) begin raiserror(' The library has no such readers , Borrowing failed ',16,1)WITH NOWAIT return end declare @bkStatus int select @bkStatus = bkStatus from Book where bkID = @bkID if @bkStatus =0 begin raiserror(' The book is not in the library , Can't borrow ',16,1)WITH NOWAIT return end declare @rdBorrowQty int,@canLendQty int select @rdBorrowQty = rdBorrowQty from Reader where rdID = @rdID select @canLendQty = canLendQty from ReaderType where rdType = (select rdType from Reader where rdID = @rdID) if @rdBorrowQty = @canLendQty begin raiserror(' I'm sorry ! The number of books you have borrowed has reached the maximum ! Borrowing failed !',16,1) WITH NOWAIT return end update Book set bkStatus = 0 where bkID = @bkID update Reader set rdBorrowQty = rdBorrowQty + 1 where rdID = @rdID declare @canLendDay int select @canLendDay = canLendDay from ReaderType where rdType = (select rdType from Reader where rdID = @rdID) insert into Borrow values(@rdID,@bkID,GETDATE(), DATEADD (dd, @canLendDay,GETDATE())) exec usp_BorrowBook 'rd2019002','bk2019002'边栏推荐
- js求所有水仙花数
- Testing network connectivity with the blackbox exporter
- ACM课程学期总结
- 【c ++ primer 笔记】第3章 字符串、向量和数组
- 野风药业IPO被终止:曾拟募资5.4亿 实控人俞蘠曾进行P2P投资
- js打印99乘法表
- JDBC operation MySQL example
- 语音信号处理-概念(二):幅度谱(短时傅里叶变换谱/STFT spectrum)、梅尔谱(Mel spectrum)【语音的深度学习主要用幅度谱、梅尔谱】【用librosa或torchaudio提取】
- What is futures reverse documentary?
- log4j:WARN No such property [zipPermission] in org. apache. log4j. RollingFileAppender.
猜你喜欢

JS to judge the odd and even function and find the function of circular area

参考 | 升级 Win11 移动热点开不了或者开了连不上

语音信号处理-概念(二):幅度谱(短时傅里叶变换谱/STFT spectrum)、梅尔谱(Mel spectrum)【语音的深度学习主要用幅度谱、梅尔谱】【用librosa或torchaudio提取】

MySQL

2、项目使用的QT组件

Cookie encryption 7 fidder analysis phase

How to view program running time (timer) in JS

「短视频」临夏消防救援支队开展消防安全培训授课

磁选机是什么?

cookie加密7 fidder分析阶段
随机推荐
语音信号处理-概念(二):幅度谱(短时傅里叶变换谱/STFT spectrum)、梅尔谱(Mel spectrum)【语音的深度学习主要用幅度谱、梅尔谱】【用librosa或torchaudio提取】
【10. 差分】
【12. 最大连续不重复子序列】
Cookie encryption 7 fidder analysis phase
PayPal账户遭大规模冻结!跨境卖家如何自救?
What is a flotation machine?
【批处理DOS-CMD命令-汇总和小结】-环境变量、路径变量、搜索文件位置相关指令——set、path、where,cmd命令的路径参数中有空格怎么办
RNA SEQ data analysis in R - investigate differentially expressed genes in the data!
Etcd教程 — 第五章 Etcd之etcdctl的使用
Coal crusher
js中输入三个值,并且由小到大输出
语音信号处理-概念(一):时谱图(横轴:时间;纵轴:幅值)、频谱图(横轴:频率;纵轴:幅值)--傅里叶变换-->时频谱图【横轴:时间;纵轴:频率;颜色深浅:幅值】
Experience record of Luogu's topic brushing
若xn>0,且x(n+1)/xn>1-1/n(n=1,2,...),证明级数∑xn发散
PostgreSQL encounters permission denied in Windows system
Blind survey shows that female code farmers are better than male code farmers
【11. 二维差分】
大厂工作十年,年薪40万突然被裁员,公司想抛弃你,一分情面都不会留
js求所有水仙花数
游戏六边形地图的实现