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

WBOY
Release: 2016-06-13 12:34:29
Original
801 people have browsed it

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

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


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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!