其他的表是跟其差不多 大概有400-500个表 怎么能够放到一个表中 利于搜索呢差不多还是完全一样 完全一样: select * from ( select * from b1 union all select * from b1 union all ... select * from bn) a where phoneNo='11231' insert into chezhu1_temp select * from tab1 union all select * from tab2 union all ......... SQL code: create view v_test as select 字段列表 from tab1 union all select 字段列表 from tab2 union all .........
字段如果出现不同呢?
那就只能把字段一个一个列出来了。 select col1, co2 ,... from table1 union all select col1, co2 ,... from table2 ..