现在有十二个表,表的结构,字段,列名等都是一样,只是因为数据太多了,分成十二张表存放,现在请用sql查询出十二表指定用户的数据
例:
表1:select * from table_1 where table_id=222;
表2:select * from table_2 where table_id=222;
表3:select * from table_3 where table_id=222;
.
.
.
表12:select * from table_12 where table_id=222;
如何用sql语句把这十二个sql连结起来,或者用sql达到相同的结果即可。sql数据库