Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有多个名为: 的表data_yyyymmdd。前任。数据_20121028,数据_20121029,...
data_yyyymmdd
每个表都有相同的字段。如何从所有这些表中获取所有记录?
SELECT * FROM data_20121028 UNION SELECT * FROM data_20121029 UNION ...
MySQL 5.6 参考手册:UNION 语法