Home  >  Article  >  Backend Development  >  mysql 多个表要如何查出里面内容按最后更新时间排列

mysql 多个表要如何查出里面内容按最后更新时间排列

WBOY
WBOYOriginal
2016-06-13 12:34:29801browse

mysql 多个表要怎么查出里面内容按最后更新时间排列
mysql 多个表要怎么查出里面内容按最后更新时间排列
字段四个表都一样,只有内容不一样
表名:aaa,bbb,ccc,ddd   四个表

表字段:title,classid,userid,newstime,classname,images


我现在想把没有任何关联的四个独立表,查出最后更新(newstime)的降序,且userid=2,十条记录内容出出来要怎么写?
newstime 字段 Unix时间戳  格式
userid 字段是用户ID的字段(也就是要查出这个用户最后更新的内容按时间降序十条出来)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn