SQL里不能这么写吗?
select ordno from ORDERS 
  where (cid,aid) in
  ( select cid,aid from CUSTOMERS c,AGENTS a where c.city=a.city and a.city='New York' )
我用的是2008,提示如下错误:消息 4145,级别 15,状态 1,第 2 行
在应使用条件的上下文(在 ',' 附近)中指定了非布尔类型的表达式。难道不允许这样写
难道 select * from tablename where (a1,a2...an) in subquery( {a1,a2...an} )这样不行?
请高手指教