SHOW FULL COLUMNS FROM `zx_system` [ RunTime:0.000753s ]
SELECT * FROM `zx_system` WHERE `id` = 1 LIMIT 1 [ RunTime:0.000365s ]
SHOW FULL COLUMNS FROM `zx_article` [ RunTime:0.000576s ]
SHOW FULL COLUMNS FROM `zx_course` [ RunTime:0.000785s ]
SHOW FULL COLUMNS FROM `zx_cate` [ RunTime:0.000700s ]
SHOW FULL COLUMNS FROM `zx_school` [ RunTime:0.000812s ]
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.000916s ]
SELECT * FROM `zx_school` WHERE `status` = 1 ORDER BY rand() LIMIT 12 [ RunTime:0.001229s ]
SELECT * FROM `zx_school` WHERE `status` = 1 ORDER BY rand() LIMIT 12 [ RunTime:0.001143s ]
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.001906s ]