时间:2021-07-01 10:21:17 帮助过:26人阅读
SELECT `id` , `time` , `title`
FROM `think_infor`
WHERE `type` LIKE '$k-%'
UNION ALL
SELECT `id` , `time` , `title`
FROM `think_infor2`
WHERE `type` LIKE '$k-%'
ORDER BY `time` DESC
LIMIT 0,6
SELECT `id` , `time` , `title`, 'think_infor' as tbl_name
FROM `think_infor`
WHERE `type` LIKE '$k-%'
UNION
SELECT `id` , `time` , `title`, 'think_infor2'
FROM `think_infor2`
WHERE `type` LIKE '$k-%'
ORDER BY `time` DESC
LIMIT 0,6