开发者

Parameterizing a SQL IN clause on an integer column?

开发者 https://www.devze.com 2022-12-22 19:13 出处:网络
Jeff Atwood asked the original question about parameterizing a SQL IN clause, but I want to do this with an integer column.If I try the code from the original post I get the开发者_运维技巧 following e

Jeff Atwood asked the original question about parameterizing a SQL IN clause, but I want to do this with an integer column. If I try the code from the original post I get the开发者_运维技巧 following exception, which makes sense:

Conversion failed when converting the varchar value '%|' to data type int.

Anyone try this before?


I think that Jørn Schou-Rode gave the best answer in the comments where he links to the top answer from this question:

Parameterizing a SQL IN clause?

0

精彩评论

暂无评论...
验证码 换一张
取 消