SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001540s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.009926s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001584s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.108' ) [ RunTime:0.000358s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.003132s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.001490s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 127 LIMIT 1 [ RunTime:0.001663s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 127 [ RunTime:0.000188s ]
SELECT `id`,`name` FROM `product_type` WHERE `typeid` = 21 [ RunTime:0.000178s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001317s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `partno` LIKE 'KPHCM-2012SURCK%' AND `status` <> 2 AND `categoryid` = 127 ) AND `u`.`lockUser` = '0' [ RunTime:0.000869s ]
SELECT `s`.`id` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay = 1) ) AND ( `partno` LIKE 'KPHCM-2012SURCK%' AND `status` <> 2 AND `categoryid` = 127 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.003822s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay = 1) ) AND `s`.`id` IN ('3442','7343') ORDER BY FIELD(s.id, 3442,7343) [ RunTime:0.001833s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.003485s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3442 LIMIT 4 [ RunTime:0.000587s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002314s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3442 ORDER BY `minOrder` ASC [ RunTime:0.000881s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.002190s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3442 ORDER BY `unit` DESC [ RunTime:0.002687s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002172s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3442 LIMIT 2 [ RunTime:0.001025s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3442 ORDER BY `minOrder` ASC [ RunTime:0.000303s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002233s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'KPHCM-2012SURCK' OR `brand` LIKE 'KINGBRIGHT%' ) ) LIMIT 1 [ RunTime:0.003411s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 7343 LIMIT 4 [ RunTime:0.003128s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7343 ORDER BY `minOrder` ASC [ RunTime:0.000845s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 7343 ORDER BY `unit` DESC [ RunTime:0.007199s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 7343 LIMIT 2 [ RunTime:0.005481s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7343 ORDER BY `minOrder` ASC [ RunTime:0.000307s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'KPHCM-2012SURCK' OR `brand` LIKE 'KINGBRIGHT%' ) ) LIMIT 1 [ RunTime:0.000296s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'KPHCM-2012SURCK%' AND `status` <> 2 AND `categoryid` = 127 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.003142s ]