SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002060s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.006340s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002165s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.37' ) [ RunTime:0.000326s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001808s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000275s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000263s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000225s ]
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.000438s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002110s ]
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 '2-520193-2%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.001151s ]
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 ('1822234','6999','9297','1877','16494','15474') ORDER BY FIELD(s.id, 1822234,6999,9297,1877,16494,15474) [ RunTime:0.001619s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001610s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1822234 LIMIT 4 [ RunTime:0.014744s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.003966s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1822234 ORDER BY `minOrder` ASC [ RunTime:0.003410s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001632s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1822234 ORDER BY `unit` DESC [ RunTime:0.000866s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001545s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1822234 LIMIT 2 [ RunTime:0.000380s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1822234 ORDER BY `minOrder` ASC [ RunTime:0.000220s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6999 LIMIT 4 [ RunTime:0.000350s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6999 ORDER BY `minOrder` ASC [ RunTime:0.000960s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6999 ORDER BY `unit` DESC [ RunTime:0.002589s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6999 LIMIT 2 [ RunTime:0.003102s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6999 ORDER BY `minOrder` ASC [ RunTime:0.000856s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001796s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2-520193-2' OR `brand` LIKE 'AMP - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.001309s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9297 LIMIT 4 [ RunTime:0.002296s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9297 ORDER BY `minOrder` ASC [ RunTime:0.001929s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9297 ORDER BY `unit` DESC [ RunTime:0.000382s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9297 LIMIT 2 [ RunTime:0.000339s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9297 ORDER BY `minOrder` ASC [ RunTime:0.000165s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2-520193-2' OR `brand` LIKE 'AMP - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.000171s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1877 LIMIT 4 [ RunTime:0.000216s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1877 ORDER BY `minOrder` ASC [ RunTime:0.000357s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1877 ORDER BY `unit` DESC [ RunTime:0.002496s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1877 LIMIT 2 [ RunTime:0.002466s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1877 ORDER BY `minOrder` ASC [ RunTime:0.002692s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2-520193-2' OR `brand` LIKE 'AMP - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.000184s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16494 LIMIT 4 [ RunTime:0.002972s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16494 ORDER BY `minOrder` ASC [ RunTime:0.003290s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16494 ORDER BY `unit` DESC [ RunTime:0.002250s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16494 LIMIT 2 [ RunTime:0.000351s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16494 ORDER BY `minOrder` ASC [ RunTime:0.000162s ]
select * from pdf where partno='2-520193-2' and brandshort='AMP - TE CONNECTIVITY' limit 1 [ RunTime:0.001175s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2-520193-2' OR `brand` LIKE 'AMP - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.004607s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15474 LIMIT 4 [ RunTime:0.003081s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15474 ORDER BY `minOrder` ASC [ RunTime:0.007066s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15474 ORDER BY `unit` DESC [ RunTime:0.000496s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15474 LIMIT 2 [ RunTime:0.000364s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15474 ORDER BY `minOrder` ASC [ RunTime:0.000263s ]
select * from pdf where partno='2-520193-2' and brandshort='AMP - TE CONNECTIVITY' limit 1 [ RunTime:0.000590s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2-520193-2' OR `brand` LIKE 'AMP - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.000328s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE '2-520193-2%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.000370s ]