当前位置:网站首页>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'边栏推荐
- cookie加密7 fidder分析阶段
- Blind survey shows that female code farmers are better than male code farmers
- Error in idea connection database
- win10-如何管理开机启动项?
- The first part of the construction of the defense system of attack and defense exercise is the introduction and the four stages of Defense
- 基础知识 | js基础
- Helix QAC is updated to 2022.1 and will continue to provide high standard compliance coverage
- 认识O(NlogN)的排序
- 【批处理DOS-CMD命令-汇总和小结】-cmd的内部命令和外部命令怎么区分,CMD命令和运行(win+r)命令的区别,
- Import and export database related tables from the win command line
猜你喜欢

MSSQL how to export and delete multi table data using statements

【批处理DOS-CMD命令-汇总和小结】-环境变量、路径变量、搜索文件位置相关指令——set、path、where,cmd命令的路径参数中有空格怎么办

【批处理DOS-CMD命令-汇总和小结】-cmd的内部命令和外部命令怎么区分,CMD命令和运行(win+r)命令的区别,

【批处理DOS-CMD命令-汇总和小结】-将文件夹映射成虚拟磁盘——subst

【批处理DOS-CMD命令-汇总和小结】-输出/显示命令——echo

「短视频」临夏消防救援支队开展消防安全培训授课
![log4j:WARN No such property [zipPermission] in org.apache.log4j.RollingFileAppender.](/img/2c/425993cef31dd4c786f9cc5ff081ef.png)
log4j:WARN No such property [zipPermission] in org.apache.log4j.RollingFileAppender.

L'introduction en bourse de Wild Wind Pharmaceutical a pris fin: Yu pinzeng, qui avait l'intention de lever 540 millions de RMB, a effectué un investissement P2P.

js求所有水仙花数

野風藥業IPO被終止:曾擬募資5.4億 實控人俞蘠曾進行P2P投資
随机推荐
JS output all prime numbers between 1-100 and calculate the total number
js用while循环计算假如投资多年的利率为5%,试求从1000块增长到5000块,需要花费多少年
2022 love analysis · panoramic report of it operation and maintenance manufacturers
洛谷刷题心得记录
How torch. gather works
Index +sql exercise optimization
Custom palette for ggplot2
js打印99乘法表
How to add data to the back-end database in the form of Excel file on the web page
Coal crusher
C how to call line and rows when updating the database
js输出形状
Binary tree structure and heap structure foundation
Helix QAC is updated to 2022.1 and will continue to provide high standard compliance coverage
Blind survey shows that female code farmers are better than male code farmers
JS to determine whether the number entered by the user is a prime number (multiple methods)
期货反向跟单—交易员的培训问题
How can the flower e-commerce 2.0 era go after the breakthrough from 0 to 1?
若xn>0,且x(n+1)/xn>1-1/n(n=1,2,...),证明级数∑xn发散
准备好迁移上云了?请收下这份迁移步骤清单