当前位置:网站首页>Sqlserver stored procedures pass array parameters
Sqlserver stored procedures pass array parameters
2022-07-05 04:50:00 【Cup dissatisfaction】
Problem description
Create PROCEDURE [dbo].[Ly_Kc_GetKcInfoById]
@strKcId varchar(500)-- The value to be passed in is ‘1,2,3,4,5’
select * from Table where Id in (@strKcId )
explain Id by Int type
The parameter ‘1,2,3,4,5’ Pass it on , Executing a stored procedure will report an error .
terms of settlement :
select * from Table where CHARINDEX(','+cast(Id as varchar(20))+',' , ','[email protected]+',')>0
边栏推荐
- windows下Redis-cluster集群搭建
- [groovy] closure (Introduction to closure class closure | this, owner, delegate member assignment and source code analysis)
- Label exchange experiment
- Practice | mobile end practice
- 49 pictures and 26 questions explain in detail what is WiFi?
- Rip notes [rip message security authentication, increase of rip interface measurement]
- 次小生成树
- Qt蓝牙:搜索蓝牙设备的类——QBluetoothDeviceDiscoveryAgent
- Manually implement heap sorting -838 Heap sort
- 2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas
猜你喜欢
[groovy] closure (closure call is associated with call method | call () method is defined in interface | call () method is defined in class | code example)
Create a pyGame window with a blue background
AutoCAD - Document Management
Emlog blog theme template source code simple good-looking responsive
Invalid bound statement (not found) in idea -- problem solving
質量體系建設之路的分分合合
Group counting notes (1) - check code, original complement multiplication and division calculation, floating point calculation
54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●
Private collection project practice sharing [Yugong series] February 2022 U3D full stack class 006 unity toolbar
Wenet: E2E speech recognition tool for industrial implementation
随机推荐
Practice | mobile end practice
CUDA Programming atomic operation atomicadd reports error err:msb3721, return code 1
Solution of circular dependency
[groovy] closure (closure call | closure default parameter it | code example)
Redis 排查大 key 的4种方法,优化必备
"Measuring curve length" of CAD dream drawing
xss注入
XSS injection
Séparation et combinaison de la construction du système qualité
Neural networks and deep learning Chapter 5: convolutional neural networks reading questions
Thinking of 2022 American College Students' mathematical modeling competition
Flutter 小技巧之 ListView 和 PageView 的各种花式嵌套
2021 huashubei mathematical modeling idea + reference + paper
Number theoretic function and its summation to be updated
Understand encodefloatrgba and decodefloatrgba
[groovy] closure closure (customize closure parameters | customize a single closure parameter | customize multiple closure parameters | specify the default value of closure parameters)
jmeter -- 分布式压测
Raki's notes on reading paper: soft gazetteers for low resource named entity recognition
Decryption function calculates "task state and lifecycle management" of asynchronous task capability
Thematic information | carbon, carbon neutrality, low carbon, carbon emissions - 22.1.9