一个sql语句的问题,简单有分 取出的结果应该是 ID NAME 1 a 2 b这个SQL语句怎么写 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.* from a where id not in(select b.id from b)union allselect a.* from a,b where a.id=b.id and b.endtime is null; select * from a where (id not in (select id from b)) or (id in (select id from where endtime is null)) 这样的SQL语句速度太慢了还有没有其他的方法? select a.* from a,b where (a.id=b.id and b.endtime is null) or (a.id<>b.id) 【请教update选取指定ID最大值】 Oracle 问题求解.................. 创建表提示datetime无效数据类型 请教Oracle9i的license问题 plsql嵌套循环怎么写 只有高手才能解决的难题~~ 请教高手们,如果v$log中所有日志组都是active,该如何处理? 请教一条sql语句! 关于ORACLE的EXP的问题,急!!! 能否把多行里面的内容放在一行里面?? oracle 的一个排序问题 用CREATE TABLE语句建立表
union all
select a.* from a,b where a.id=b.id and b.endtime is null;
还有没有其他的方法?