日期:2014-05-17 浏览次数:20838 次
select card_no from card_info where card_info in (select substr(start_no,1,12) from card_sale)
------解决方案--------------------
非要写一串复杂的语句
可在程序中取出号段集合后处理呀
------解决方案--------------------
select card_no from card_info,(select start_no,end_no from card_sale where) a
where card_no between a.start_no and a.end_no
------解决方案--------------------
select card_no from card_info c where exists (select 1 from care_sale where 条件 and c.card_no between start_no and end_no)
------解决方案--------------------