如果你能保证子查询返回的是一条记录,并且返回的是number,那么这个语句是可以执行的。
如果实在不行的话你就用exists来实现吧select *
from table1 t1
where exists (select 1
from table2 t2
where id = ‘id’
and t1.col1 > t2.colxx)
如果实在不行的话你就用exists来实现吧select *
from table1 t1
where exists (select 1
from table2 t2
where id = ‘id’
and t1.col1 > t2.colxx)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货