开发者

how select that where =list

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜