SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001143s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000856s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001484s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.186' ) [ RunTime:0.000301s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001153s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000242s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000360s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000282s ]
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.000434s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002560s ]
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 'DS2431%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.001636s ]
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 ('5988287','9021117','9021118','9021140','9027937','5251982','5251110','5250209','5251103','9027946','8055','5988284','9012138','9008335','5253530','4615112','4614752','4613988','4610521') ORDER BY FIELD(s.id, 5988287,9021117,9021118,9021140,9027937,5251982,5251110,5250209,5251103,9027946,8055,5988284,9012138,9008335,5253530,4615112,4614752,4613988,4610521) [ RunTime:0.008230s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001528s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5988287 LIMIT 4 [ RunTime:0.000684s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001016s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5988287 ORDER BY `minOrder` ASC [ RunTime:0.005310s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001281s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5988287 ORDER BY `unit` DESC [ RunTime:0.005205s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001131s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5988287 LIMIT 2 [ RunTime:0.002111s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5988287 ORDER BY `minOrder` ASC [ RunTime:0.001222s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9021117 LIMIT 4 [ RunTime:0.000578s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9021117 ORDER BY `minOrder` ASC [ RunTime:0.000279s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9021117 ORDER BY `unit` DESC [ RunTime:0.000276s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9021117 LIMIT 2 [ RunTime:0.003135s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9021117 ORDER BY `minOrder` ASC [ RunTime:0.005037s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9021118 LIMIT 4 [ RunTime:0.005558s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9021118 ORDER BY `minOrder` ASC [ RunTime:0.005933s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9021118 ORDER BY `unit` DESC [ RunTime:0.003137s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9021118 LIMIT 2 [ RunTime:0.001110s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9021118 ORDER BY `minOrder` ASC [ RunTime:0.001023s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9021140 LIMIT 4 [ RunTime:0.000860s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9021140 ORDER BY `minOrder` ASC [ RunTime:0.007073s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9021140 ORDER BY `unit` DESC [ RunTime:0.003693s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9021140 LIMIT 2 [ RunTime:0.003326s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9021140 ORDER BY `minOrder` ASC [ RunTime:0.001261s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9027937 LIMIT 4 [ RunTime:0.001945s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9027937 ORDER BY `minOrder` ASC [ RunTime:0.000596s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9027937 ORDER BY `unit` DESC [ RunTime:0.005922s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9027937 LIMIT 2 [ RunTime:0.000615s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9027937 ORDER BY `minOrder` ASC [ RunTime:0.001121s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5251982 LIMIT 4 [ RunTime:0.009378s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5251982 ORDER BY `minOrder` ASC [ RunTime:0.001902s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5251982 ORDER BY `unit` DESC [ RunTime:0.000987s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5251982 LIMIT 2 [ RunTime:0.001431s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5251982 ORDER BY `minOrder` ASC [ RunTime:0.000256s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5251110 LIMIT 4 [ RunTime:0.000769s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5251110 ORDER BY `minOrder` ASC [ RunTime:0.000328s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5251110 ORDER BY `unit` DESC [ RunTime:0.000334s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5251110 LIMIT 2 [ RunTime:0.001965s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5251110 ORDER BY `minOrder` ASC [ RunTime:0.003108s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5250209 LIMIT 4 [ RunTime:0.003476s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5250209 ORDER BY `minOrder` ASC [ RunTime:0.000360s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5250209 ORDER BY `unit` DESC [ RunTime:0.002237s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5250209 LIMIT 2 [ RunTime:0.000490s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5250209 ORDER BY `minOrder` ASC [ RunTime:0.000250s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5251103 LIMIT 4 [ RunTime:0.002569s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5251103 ORDER BY `minOrder` ASC [ RunTime:0.000355s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5251103 ORDER BY `unit` DESC [ RunTime:0.000344s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5251103 LIMIT 2 [ RunTime:0.000379s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5251103 ORDER BY `minOrder` ASC [ RunTime:0.002107s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9027946 LIMIT 4 [ RunTime:0.002216s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9027946 ORDER BY `minOrder` ASC [ RunTime:0.006957s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9027946 ORDER BY `unit` DESC [ RunTime:0.006381s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9027946 LIMIT 2 [ RunTime:0.001520s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9027946 ORDER BY `minOrder` ASC [ RunTime:0.000269s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8055 LIMIT 4 [ RunTime:0.001577s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8055 ORDER BY `minOrder` ASC [ RunTime:0.000417s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8055 ORDER BY `unit` DESC [ RunTime:0.000340s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8055 LIMIT 2 [ RunTime:0.001948s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8055 ORDER BY `minOrder` ASC [ RunTime:0.005068s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002533s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'DS2431+' OR `brand` LIKE 'ANALOG DEVICES%' ) ) LIMIT 1 [ RunTime:0.007190s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5988284 LIMIT 4 [ RunTime:0.002588s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5988284 ORDER BY `minOrder` ASC [ RunTime:0.000484s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5988284 ORDER BY `unit` DESC [ RunTime:0.001800s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5988284 LIMIT 2 [ RunTime:0.001329s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5988284 ORDER BY `minOrder` ASC [ RunTime:0.000310s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9012138 LIMIT 4 [ RunTime:0.000604s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9012138 ORDER BY `minOrder` ASC [ RunTime:0.003789s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9012138 ORDER BY `unit` DESC [ RunTime:0.008422s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9012138 LIMIT 2 [ RunTime:0.001347s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9012138 ORDER BY `minOrder` ASC [ RunTime:0.000925s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9008335 LIMIT 4 [ RunTime:0.000595s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9008335 ORDER BY `minOrder` ASC [ RunTime:0.000391s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9008335 ORDER BY `unit` DESC [ RunTime:0.000322s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9008335 LIMIT 2 [ RunTime:0.001552s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9008335 ORDER BY `minOrder` ASC [ RunTime:0.004807s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5253530 LIMIT 4 [ RunTime:0.005665s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5253530 ORDER BY `minOrder` ASC [ RunTime:0.000380s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5253530 ORDER BY `unit` DESC [ RunTime:0.000342s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5253530 LIMIT 2 [ RunTime:0.001464s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5253530 ORDER BY `minOrder` ASC [ RunTime:0.003417s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4615112 LIMIT 4 [ RunTime:0.001330s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4615112 ORDER BY `minOrder` ASC [ RunTime:0.001428s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4615112 ORDER BY `unit` DESC [ RunTime:0.003214s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4615112 LIMIT 2 [ RunTime:0.000443s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4615112 ORDER BY `minOrder` ASC [ RunTime:0.002160s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4614752 LIMIT 4 [ RunTime:0.001191s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4614752 ORDER BY `minOrder` ASC [ RunTime:0.000362s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4614752 ORDER BY `unit` DESC [ RunTime:0.000323s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4614752 LIMIT 2 [ RunTime:0.001287s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4614752 ORDER BY `minOrder` ASC [ RunTime:0.007792s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4613988 LIMIT 4 [ RunTime:0.008006s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4613988 ORDER BY `minOrder` ASC [ RunTime:0.000641s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4613988 ORDER BY `unit` DESC [ RunTime:0.001664s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4613988 LIMIT 2 [ RunTime:0.000752s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4613988 ORDER BY `minOrder` ASC [ RunTime:0.000265s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4610521 LIMIT 4 [ RunTime:0.000757s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4610521 ORDER BY `minOrder` ASC [ RunTime:0.002271s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4610521 ORDER BY `unit` DESC [ RunTime:0.000393s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4610521 LIMIT 2 [ RunTime:0.000328s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4610521 ORDER BY `minOrder` ASC [ RunTime:0.000236s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'DS2431%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.000980s ]