SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002792s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000489s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002198s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.147' ) [ RunTime:0.000298s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002324s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000552s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 238 LIMIT 1 [ RunTime:0.000256s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 238 [ RunTime:0.000260s ]
SELECT `id`,`name` FROM `product_type` WHERE `typeid` = 29 [ RunTime:0.000269s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002073s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `status` <> 2 AND `categoryid` = 238 ) AND `u`.`lockUser` = '0' [ RunTime:0.002012s ]
SELECT `s`.`id` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay = 1) ) AND ( `status` <> 2 AND `categoryid` = 238 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.001167s ]
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 ('4234','8089','10318','8088','8090') ORDER BY FIELD(s.id, 4234,8089,10318,8088,8090) [ RunTime:0.001043s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.004003s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4234 LIMIT 4 [ RunTime:0.000504s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001938s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4234 ORDER BY `minOrder` ASC [ RunTime:0.004676s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001833s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4234 ORDER BY `unit` DESC [ RunTime:0.000577s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002001s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4234 LIMIT 2 [ RunTime:0.000565s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4234 ORDER BY `minOrder` ASC [ RunTime:0.002823s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002630s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1-1734742-0' OR `brand` LIKE 'AMP - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.000857s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8089 LIMIT 4 [ RunTime:0.010672s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8089 ORDER BY `minOrder` ASC [ RunTime:0.000539s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8089 ORDER BY `unit` DESC [ RunTime:0.002392s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8089 LIMIT 2 [ RunTime:0.000682s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8089 ORDER BY `minOrder` ASC [ RunTime:0.000279s ]
select * from pdf where partno='686730100001' and brandshort='WURTH ELEKTRONIK' limit 1 [ RunTime:0.001797s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '686730100001' OR `brand` LIKE 'WURTH ELEKTRONIK%' ) ) LIMIT 1 [ RunTime:0.005840s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 10318 LIMIT 4 [ RunTime:0.000460s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10318 ORDER BY `minOrder` ASC [ RunTime:0.003455s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 10318 ORDER BY `unit` DESC [ RunTime:0.001440s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 10318 LIMIT 2 [ RunTime:0.000564s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10318 ORDER BY `minOrder` ASC [ RunTime:0.000357s ]
select * from pdf where partno='686705200001' and brandshort='WURTH ELEKTRONIK' limit 1 [ RunTime:0.000614s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '686705200001' OR `brand` LIKE 'WURTH ELEKTRONIK%' ) ) LIMIT 1 [ RunTime:0.002126s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8088 LIMIT 4 [ RunTime:0.000499s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8088 ORDER BY `minOrder` ASC [ RunTime:0.000449s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8088 ORDER BY `unit` DESC [ RunTime:0.002937s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8088 LIMIT 2 [ RunTime:0.002328s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8088 ORDER BY `minOrder` ASC [ RunTime:0.000294s ]
select * from pdf where partno='686720100001' and brandshort='WURTH ELEKTRONIK' limit 1 [ RunTime:0.000610s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '686720100001' OR `brand` LIKE 'WURTH ELEKTRONIK%' ) ) LIMIT 1 [ RunTime:0.003021s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8090 LIMIT 4 [ RunTime:0.000682s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8090 ORDER BY `minOrder` ASC [ RunTime:0.000576s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8090 ORDER BY `unit` DESC [ RunTime:0.000427s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8090 LIMIT 2 [ RunTime:0.000417s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8090 ORDER BY `minOrder` ASC [ RunTime:0.000241s ]
select * from pdf where partno='687650100002' and brandshort='WURTH ELEKTRONIK' limit 1 [ RunTime:0.001086s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '687650100002' OR `brand` LIKE 'WURTH ELEKTRONIK%' ) ) LIMIT 1 [ RunTime:0.002494s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `status` <> 2 AND `categoryid` = 238 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.008263s ]