It appears that you really want to do a UNION
query between the user
and product
tables. You can then SELECT
the Title
from this result and order using the Date
.
SELECT t.Title
FROM
(
SELECT Date FROM user
UNION
SELECT Date FROM product
) t
ORDER BY t.Date DESC
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.