SQL- UNION ALL a large number of tables

前端 未结 4 1704
萌比男神i
萌比男神i 2021-01-27 07:39

I have a large number of tables (some thousands) containing similar data. I would like to run some reports from these. The table names are similar, so I can get a list of table

4条回答
  •  庸人自扰
    2021-01-27 08:15

    All these tables have the same data types and number of columns, because if this not the case then you will not be able to use UNION sentences, however, it's very strange to merge all the information in this way, could you put some examples to clarify it.

提交回复
热议问题