SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001386s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.003152s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001568s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '18.97.14.85' ) [ RunTime:0.000540s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001302s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000446s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 438 [ RunTime:0.000395s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 438 LIMIT 1 [ RunTime:0.000245s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001381s ]
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` FORCE INDEX ( idx_categoryid ) LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '438' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.001753s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001888s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1357 LIMIT 5 [ RunTime:0.000436s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001969s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1357 ORDER BY `minOrder` ASC [ RunTime:0.000735s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.002900s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1357 ORDER BY `unit` DESC [ RunTime:0.000684s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001953s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1357 LIMIT 2 [ RunTime:0.000553s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1357 ORDER BY `minOrder` ASC [ RunTime:0.000590s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002032s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'HFBR-2412TZ' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.004991s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1358 LIMIT 5 [ RunTime:0.000449s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1358 ORDER BY `minOrder` ASC [ RunTime:0.000413s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1358 ORDER BY `unit` DESC [ RunTime:0.000416s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1358 LIMIT 2 [ RunTime:0.000401s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1358 ORDER BY `minOrder` ASC [ RunTime:0.000433s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'HFBR-4533Z' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.002116s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1359 LIMIT 5 [ RunTime:0.000407s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1359 ORDER BY `minOrder` ASC [ RunTime:0.000427s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1359 ORDER BY `unit` DESC [ RunTime:0.000398s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1359 LIMIT 2 [ RunTime:0.000318s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1359 ORDER BY `minOrder` ASC [ RunTime:0.000424s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'HFBR-4535Z' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.002049s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13729 LIMIT 5 [ RunTime:0.000340s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13729 ORDER BY `minOrder` ASC [ RunTime:0.000709s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13729 ORDER BY `unit` DESC [ RunTime:0.001401s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13729 LIMIT 2 [ RunTime:0.000510s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13729 ORDER BY `minOrder` ASC [ RunTime:0.000400s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'WLL160-F420' OR `brand` LIKE 'SICK OPTIC ELECTRONIC%' ) ) LIMIT 1 [ RunTime:0.000689s ]
SELECT `id` FROM `stock` WHERE `id` <> 13729 AND `partno` = 'WLL160-F420' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%sick optic electronic%' ) [ RunTime:0.000983s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` FORCE INDEX ( idx_categoryid ) LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '438' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.000454s ]
SELECT brand, count(*) as count FROM ( SELECT `brand` FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '438' ) LIMIT 4 ) tmp GROUP BY `brand` [ RunTime:0.000907s ]