两个表tb1,tb2,每个表都有上百条数据,两个表有一个共同字段no。
现在要取出tb1的所有字段名和值,再加上tb2中除了tb2.no之外的所有值,输出结果。
请问sql语句应该如何写?
select * from tb1,tb2 where tb1.no='123' and tb2.no=tb1.no  如何去掉tb2.no呢?
因为数据量太大,可不想一个字段一个字段(select tb1.no,tb1.……tb2.…… from tb1,tb2 where tb1.no='123' and tb2.no=tb1.no)的写出来啊