SHOW FULL COLUMNS FROM `zx_system` [ RunTime:0.000730s ]
SELECT * FROM `zx_system` WHERE `id` = 1 LIMIT 1 [ RunTime:0.000527s ]
SHOW FULL COLUMNS FROM `zx_article` [ RunTime:0.000944s ]
SHOW FULL COLUMNS FROM `zx_course` [ RunTime:0.001217s ]
SHOW FULL COLUMNS FROM `zx_cate` [ RunTime:0.001974s ]
SHOW FULL COLUMNS FROM `zx_school` [ RunTime:0.001273s ]
select id,1 as type,title,create_time from zx_article where title like '%考研政治%'
UNION
select id,2 as type,title,create_time from zx_school where title like '%考研政治%'
UNION
select id,3 as type,title,create_time from zx_course where title like '%考研政治%'
order by create_time desc [ RunTime:0.002261s ]
SELECT * FROM `zx_school` WHERE `status` = 1 ORDER BY rand() LIMIT 12 [ RunTime:0.000878s ]
SELECT * FROM `zx_school` WHERE `status` = 1 ORDER BY rand() LIMIT 12 [ RunTime:0.004003s ]
SELECT `a`.* FROM `zx_course` `a` LEFT JOIN `zx_school` `b` ON `a`.`school_id`=`b`.`id` WHERE `a`.`status` = '1' AND `b`.`status` = '1' ORDER BY rand() LIMIT 12 [ RunTime:0.001484s ]