求一个SQL查询语句 在线等答案
select a.line_id from
(select line_id from station where station_name = '商城') a,
(select line_id from station where station_name = '第二中学') b
where a.line_id = b.line_id
我从A表中查得a.line_id
然后想要a.line_id当做B表的where条件
也就是 select * where id = a.line_id
请问怎么把这两个查询语句合并 ?
我是在c#中使用 需要查得数据放到DataGridView里
(select line_id from station where station_name = '商城') a,
(select line_id from station where station_name = '第二中学') b
where a.line_id = b.line_id
我从A表中查得a.line_id
然后想要a.line_id当做B表的where条件
也就是 select * where id = a.line_id
请问怎么把这两个查询语句合并 ?
我是在c#中使用 需要查得数据放到DataGridView里
...全文


