where后面能用in select吗?
师傅,where后面能用in select吗?
update set LEI='添加中' from GG where in (select top 100 ,LEI from GG where LEI=null)
------解决方案--------------------我记得是可以的,你的设置什么field in
例如
Select * from Students where classid in (
select classid from classes where grade = 1
)
------解决方案--------------------update set LEI='添加中' from GG where
LEI in (select top 100 LEI from GG where LEI=null)
------解决方案--------------------错了。
update GG set LEI='添加中' where LEI in (select top 100 LEI from GG where LEI=null)