当前位置:网站首页>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
边栏推荐
- Thematic information | carbon, carbon neutrality, low carbon, carbon emissions - 22.1.9
- AutoCAD - workspace settings
- 中国聚氨酯硬泡市场调研与投资预测报告(2022版)
- 数论函数及其求和 待更新
- [ideas] 2021 may day mathematical modeling competition / May Day mathematical modeling ideas + references + codes
- 计组笔记(1)——校验码、原补码乘除计算、浮点数计算
- 49 pictures and 26 questions explain in detail what is WiFi?
- Function overloading
- Advanced length of redis -- deletion strategy, master-slave replication, sentinel mode
- Flink cluster configuration
猜你喜欢
AutoCAD - full screen display
2022 thinking of mathematical modeling a problem of American college students / analysis of 2022 American competition a problem
Emlog blog theme template source code simple good-looking responsive
Manually implement heap sorting -838 Heap sort
Decryption function calculates "task state and lifecycle management" of asynchronous task capability
MySQL in-depth learning - index creation and deletion, index design principles, index failure scenarios, query optimization, index push down ICP
[groovy] closure (Introduction to closure class closure | this, owner, delegate member assignment and source code analysis)
PostgreSQL 超越 MySQL,“世界上最好的编程语言”薪水偏低
"Measuring curve length" of CAD dream drawing
How should programmers learn mathematics
随机推荐
2022-2028 global and Chinese video coding and transcoding Market Research Report
QT Bluetooth: a class for searching Bluetooth devices -- qbluetooth devicediscoveryagent
Discussion on the dimension of confrontation subspace
JMeter -- distributed pressure measurement
Neural networks and deep learning Chapter 3: linear model reading questions
中国金刚烷行业研究与投资预测报告(2022版)
2021 higher education social cup mathematical modeling national tournament ABCD questions - problem solving ideas - Mathematical Modeling
54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●
Special information | finance, accounting, audit - 22.1.23
AutoCAD - workspace settings
【acwing】836. Merge sets
Solution of circular dependency
[crampon programming] lintcode decoding Encyclopedia - 872 termination process
Function template
Thinking of 2022 American College Students' mathematical modeling competition
[groovy] closure closure (customize closure parameters | customize a single closure parameter | customize multiple closure parameters | specify the default value of closure parameters)
AutoCAD - stretching
CSDN body auto generate directory
The difference between bundle, chunk and module
AutoCAD - window zoom