select a.a,a.b from table a,table b
where abs(to_number(to_char(a.starttime,'ss'))-to_number(to_char(b.starttime,'ss')))<1 and to_char(a.starttime,'yyyymmdd,24hh'))=to_char(b.starttime,'yyyymmdd,24hh'))
union all
select b.a,b.b from table a,table b
where abs(to_number(to_char(a.starttime,'ss'))-to_number(to_char(b.starttime,'ss')))<1 and to_char(a.starttime,'yyyymmdd,24hh'))=to_char(b.starttime,'yyyymmdd,24hh'))
where abs(to_number(to_char(a.starttime,'ss'))-to_number(to_char(b.starttime,'ss')))<1 and to_char(a.starttime,'yyyymmdd,24hh'))=to_char(b.starttime,'yyyymmdd,24hh'))
union all
select b.a,b.b from table a,table b
where abs(to_number(to_char(a.starttime,'ss'))-to_number(to_char(b.starttime,'ss')))<1 and to_char(a.starttime,'yyyymmdd,24hh'))=to_char(b.starttime,'yyyymmdd,24hh'))
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货