【发布时间】:2021-12-21 00:53:01
【问题描述】:
emailVariable = john@example.com, sally@testing.com
SQL 查询:
select *
from [table_1]
where email in (?);
Parameter set to use emailVariable.
这不返回任何内容,两封电子邮件都有效。
我做错了吗?
我正在使用 OLE DB 源代码编辑器。
【问题讨论】:
-
2009 年的同一个问题,在 SQL Server 2008 中提供了“新”功能。SQL : in clause in stored procedure:how to pass values