我的数据库中有 7 个表。 我想从表中获取 20 个最新插入的数据。 这些表都是这样构建的:
id Link date
========-----========----==============
integer String Timestamp
最佳答案
select * from
(
Select date from table
union all
select date from table2
) as t
order by t.date desc
limit 20
关于mysql - 使用mySQL从多个表中选择具有最新时间戳的数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33611731/