这是普通的子查询
Select * from 表1 where id in (select id from 表2 条件)
我现在 已知表2的ID 都保存在string[] str 这样一个数组里
我现在用LINQ该怎么查询
我用ADO.net的话怎么查询
我用存储过程 该怎么查询 我想把变量传进去 该传一个什么模式的? 是字符串 “ID1,ID2,ID3”最后组成
Select * from 表1 where id in “ID1,ID2,ID3” 这种格式 还是 别的格式呢求标点 也正确 和LINQ的查询方法
Select * from 表1 where id in (select id from 表2 条件)
我现在 已知表2的ID 都保存在string[] str 这样一个数组里
我现在用LINQ该怎么查询
我用ADO.net的话怎么查询
我用存储过程 该怎么查询 我想把变量传进去 该传一个什么模式的? 是字符串 “ID1,ID2,ID3”最后组成
Select * from 表1 where id in “ID1,ID2,ID3” 这种格式 还是 别的格式呢求标点 也正确 和LINQ的查询方法
Select * from 表1 where charindex(id,连接起来的字符串)
join b in table2 on a.id equals b.table1Id
where str.Contains(b.id.ToString())
select a;