SHOW FULL COLUMNS FROM `zx_system` [ RunTime:0.001030s ]
SELECT * FROM `zx_system` WHERE `id` = 1 LIMIT 1 [ RunTime:0.000377s ]
SHOW FULL COLUMNS FROM `zx_article` [ RunTime:0.000615s ]
SHOW FULL COLUMNS FROM `zx_course` [ RunTime:0.000870s ]
SHOW FULL COLUMNS FROM `zx_cate` [ RunTime:0.000551s ]
SHOW FULL COLUMNS FROM `zx_school` [ RunTime:0.000798s ]
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.000634s ]
SELECT * FROM `zx_school` WHERE `status` = 1 ORDER BY rand() LIMIT 12 [ RunTime:0.000999s ]
SELECT * FROM `zx_school` WHERE `status` = 1 ORDER BY rand() LIMIT 12 [ RunTime:0.000964s ]
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.001628s ]