摘要:
题: 查询有商品的栏目. 按上面的理解,我们用join来操作,如下: mysql> select c.cat_id,cat_name from ecs_category as c inner join goods as g on c.cat_id=g.cat_id group by cat_name 阅读全文
摘要:
题: 在ecshop商城表中,查询6号栏目的商品, (注:6号是一个大栏目) 最直观的方法: mysql> select goods_id,cat_id,goods_name from goods where cat_id in (select cat_id from ecs_category wh 阅读全文
摘要:
一、查看profile是否开启: show variables like '%profiling%'; 二、开启profile分析:set profiling=on; 三、查看语句分析列表:show profiles; 四、查看单条语句执行过程(第四条):show profile for query 阅读全文