开发者

how select that where =list

开发者 https://www.devze.com 2023-02-17 15:52 出处:网络
select NameCompany fro开发者_Go百科m [ParticipateFairList] where IdFair=(select Id from [TmpFair] where Parent_FK=88)
select NameCompany fro开发者_Go百科m [ParticipateFairList] 
where IdFair=(select Id from [TmpFair] where Parent_FK=88)

This is Correct?

how

For Select * From [Table] where ID=`List` or `SubQuery`


select NameCompany from [ParticipateFairList] 
where IdFair in (select Id from [TmpFair] where Parent_FK=88)

where IdFair in (...) instead of where IdFair =(...)


For MySQL or SQL Server, you want expr IN (list | subquery).

0

精彩评论

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

关注公众号