当前位置:网站首页>SQLServer 存储过程传递数组参数
SQLServer 存储过程传递数组参数
2022-07-05 04:45:00 【水杯不满】
问题描述
Create PROCEDURE [dbo].[Ly_Kc_GetKcInfoById]
@strKcId varchar(500)--需传递进来的值为‘1,2,3,4,5’
select * from Table where Id in (@strKcId )
说明Id为Int型
将参数‘1,2,3,4,5’传递进来,执行存储过程会报错.
解决办法:
select * from Table where CHARINDEX(','+cast(Id as varchar(20))+',' , ','[email protected]+',')>0
边栏推荐
- Special information | real estate and office buildings - 22.1.9
- windows下Redis-cluster集群搭建
- [groovy] closure (closure parameter binding | curry function | rcurry function | ncurry function | code example)
- xss注入
- 假设检验——《概率论与数理统计》第八章学习笔记
- Matplotlib draws three-dimensional scatter and surface graphs
- Thinking of 2022 American College Students' mathematical modeling competition
- level17
- Variable category (automatic, static, register, external)
- Emlog博客主题模板源码简约好看响应式
猜你喜欢

Advanced length of redis -- deletion strategy, master-slave replication, sentinel mode

Live broadcast preview | container service ack elasticity prediction best practice
![[groovy] closure (closure as function parameter | code example)](/img/a6/a4ed401acfb61f85eb08daa15a8a80.jpg)
[groovy] closure (closure as function parameter | code example)

Official announcement! The third cloud native programming challenge is officially launched!

Number theoretic function and its summation to be updated

Power management bus (pmbus)
![[Business Research Report] top ten trends of science and technology and it in 2022 - with download link](/img/9f/4fc63fa7b0e9afc5dd638d4b599b2c.jpg)
[Business Research Report] top ten trends of science and technology and it in 2022 - with download link

Manually implement heap sorting -838 Heap sort

Reading and visualization of DICOM, MHD and raw files in medical imaging

2022 thinking of mathematical modeling D problem of American college students / analysis of 2022 American competition D problem
随机推荐
Mxnet imports various libcudarts * so、 libcuda*. So not found
[groovy] closure (closure parameter list rule | default parameter list | do not receive parameters | receive custom parameters)
How to carry out "small step reconstruction"?
Construction d'un Cluster redis sous Windows
TPG x AIDU | AI leading talent recruitment plan in progress!
Power management bus (pmbus)
揭秘技术 Leader 必备的七大清奇脑回路
[popular science] basic knowledge of thermal design: heat dissipation analysis of 5g optical devices
Neural networks and deep learning Chapter 2: machine learning overview reading questions
Basic analysis of IIC SPI protocol
Invalid bound statement (not found) in idea -- problem solving
2022-2028 global and Chinese virtual data storage Market Research Report
CUDA Programming atomic operation atomicadd reports error err:msb3721, return code 1
[ideas] 2021 may day mathematical modeling competition / May Day mathematical modeling ideas + references + codes
Wenet: E2E speech recognition tool for industrial implementation
MySQL in-depth learning - index creation and deletion, index design principles, index failure scenarios, query optimization, index push down ICP
概率论与数理统计考试重点复习路线
Advanced length of redis -- deletion strategy, master-slave replication, sentinel mode
775 Div.1 B. integral array mathematics
[groovy] closure closure (customize closure parameters | customize a single closure parameter | customize multiple closure parameters | specify the default value of closure parameters)