SQL的问题?
select WSID from (select WSID from F01007 where ID=9 ),同样是这样的一条SQL语句,放在Oracle执行OK,但放在SQL server中执行却通不过,不知道什么原因,
注:在SQL中执行select WSID from F01007 where ID=9 OK,并能返回记录.
------解决方案--------------------select WSID from (select WSID from F01007 where ID=9 ) t
------解决方案--------------------加个别名
select WSID from (select WSID from F01007 where ID=9 )t