先谢过各位进来的朋友
我的SQL语句:
select *,(select b_1 from tabel_b where b_aid=a_id) as b_1 from tabel_a这条会运行成功,在显示tabel_a的每一列后再加上tabel_b的 b_1这一列
问:如果我想显示b_2,b_3,b_4.......    怎么办?已知可行的方法(但是感觉太长了,很SB,相信大家还有高招):
select *,
(select b_1 from tabel_b where b_aid=a_id) as b_1,
(select b_1 from tabel_b where b_aid=a_id) as b_2
 from tabel_a