日期:2014-05-17 浏览次数:20383 次
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