SHOW FULL COLUMNS FROM `zx_system` [ RunTime:0.000679s ]
SELECT * FROM `zx_system` WHERE `id` = 1 LIMIT 1 [ RunTime:0.000331s ]
SHOW FULL COLUMNS FROM `zx_article` [ RunTime:0.000571s ]
SHOW FULL COLUMNS FROM `zx_course` [ RunTime:0.000531s ]
SHOW FULL COLUMNS FROM `zx_cate` [ RunTime:0.000475s ]
SHOW FULL COLUMNS FROM `zx_school` [ RunTime:0.000550s ]
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.000584s ]
SELECT * FROM `zx_school` WHERE `status` = 1 ORDER BY rand() LIMIT 12 [ RunTime:0.000907s ]
SELECT * FROM `zx_school` WHERE `status` = 1 ORDER BY rand() LIMIT 12 [ RunTime:0.001615s ]
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.001707s ]