SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002402s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000597s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002837s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.186' ) [ RunTime:0.000420s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002333s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000370s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000394s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000290s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,800,1068,1296,1456,1822,1929,2017,2101,2342,2393,2475,2518,2568) [ RunTime:0.000473s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002646s ]
SELECT `s`.`id` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay IS NULL OR s.isDisplay = 1) ) AND ( `partno` LIKE 'MB2S%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.010328s ]
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 IS NULL OR s.isDisplay = 1) ) AND `s`.`id` IN ('5966871','5966577','5966860','8545118','5143813','8545463','8545112','4694','5968233','1319','6930889','5144231') ORDER BY FIELD(s.id, 5966871,5966577,5966860,8545118,5143813,8545463,8545112,4694,5968233,1319,6930889,5144231) [ RunTime:0.013822s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002754s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5966871 LIMIT 4 [ RunTime:0.000841s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.005420s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5966871 ORDER BY `minOrder` ASC [ RunTime:0.002389s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.003023s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5966871 ORDER BY `unit` DESC [ RunTime:0.005107s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002849s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5966871 LIMIT 2 [ RunTime:0.002789s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5966871 ORDER BY `minOrder` ASC [ RunTime:0.000225s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5966577 LIMIT 4 [ RunTime:0.000738s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5966577 ORDER BY `minOrder` ASC [ RunTime:0.001821s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5966577 ORDER BY `unit` DESC [ RunTime:0.001600s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5966577 LIMIT 2 [ RunTime:0.000359s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5966577 ORDER BY `minOrder` ASC [ RunTime:0.000155s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5966860 LIMIT 4 [ RunTime:0.000391s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5966860 ORDER BY `minOrder` ASC [ RunTime:0.008240s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5966860 ORDER BY `unit` DESC [ RunTime:0.004738s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5966860 LIMIT 2 [ RunTime:0.001073s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5966860 ORDER BY `minOrder` ASC [ RunTime:0.000496s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8545118 LIMIT 4 [ RunTime:0.000549s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8545118 ORDER BY `minOrder` ASC [ RunTime:0.000238s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8545118 ORDER BY `unit` DESC [ RunTime:0.000546s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8545118 LIMIT 2 [ RunTime:0.001164s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8545118 ORDER BY `minOrder` ASC [ RunTime:0.000151s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5143813 LIMIT 4 [ RunTime:0.000547s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5143813 ORDER BY `minOrder` ASC [ RunTime:0.001446s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5143813 ORDER BY `unit` DESC [ RunTime:0.000353s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5143813 LIMIT 2 [ RunTime:0.000225s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5143813 ORDER BY `minOrder` ASC [ RunTime:0.000154s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8545463 LIMIT 4 [ RunTime:0.000410s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8545463 ORDER BY `minOrder` ASC [ RunTime:0.000318s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8545463 ORDER BY `unit` DESC [ RunTime:0.002623s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8545463 LIMIT 2 [ RunTime:0.000989s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8545463 ORDER BY `minOrder` ASC [ RunTime:0.000154s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8545112 LIMIT 4 [ RunTime:0.000232s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8545112 ORDER BY `minOrder` ASC [ RunTime:0.000273s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8545112 ORDER BY `unit` DESC [ RunTime:0.000265s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8545112 LIMIT 2 [ RunTime:0.000924s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8545112 ORDER BY `minOrder` ASC [ RunTime:0.002269s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4694 LIMIT 4 [ RunTime:0.000961s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4694 ORDER BY `minOrder` ASC [ RunTime:0.001811s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4694 ORDER BY `unit` DESC [ RunTime:0.010269s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4694 LIMIT 2 [ RunTime:0.000385s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4694 ORDER BY `minOrder` ASC [ RunTime:0.000161s ]
select * from pdf where partno='MB2S' and brandshort='MULTICOMP PRO' limit 1 [ RunTime:0.006080s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002185s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MB2S' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.001188s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5968233 LIMIT 4 [ RunTime:0.000943s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5968233 ORDER BY `minOrder` ASC [ RunTime:0.000452s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5968233 ORDER BY `unit` DESC [ RunTime:0.000398s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5968233 LIMIT 2 [ RunTime:0.000378s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5968233 ORDER BY `minOrder` ASC [ RunTime:0.001101s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1319 LIMIT 4 [ RunTime:0.000269s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1319 ORDER BY `minOrder` ASC [ RunTime:0.000262s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1319 ORDER BY `unit` DESC [ RunTime:0.000255s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1319 LIMIT 2 [ RunTime:0.000221s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1319 ORDER BY `minOrder` ASC [ RunTime:0.000242s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MB2S' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.000233s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6930889 LIMIT 4 [ RunTime:0.003826s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6930889 ORDER BY `minOrder` ASC [ RunTime:0.001519s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6930889 ORDER BY `unit` DESC [ RunTime:0.001209s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6930889 LIMIT 2 [ RunTime:0.001140s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6930889 ORDER BY `minOrder` ASC [ RunTime:0.000355s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5144231 LIMIT 4 [ RunTime:0.000971s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5144231 ORDER BY `minOrder` ASC [ RunTime:0.000547s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5144231 ORDER BY `unit` DESC [ RunTime:0.000499s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5144231 LIMIT 2 [ RunTime:0.001876s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5144231 ORDER BY `minOrder` ASC [ RunTime:0.001924s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'MB2S%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.002989s ]