SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001616s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000509s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002443s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.165' ) [ RunTime:0.000355s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002643s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000331s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 22 LIMIT 1 [ RunTime:0.000541s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 22 [ RunTime:0.000269s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` IN (132,133,134,135,136,137,138,139,140,141) [ RunTime:0.000372s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001996s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `partno` LIKE 'BSS84%' AND `status` <> 2 AND `categoryid` IN (132,133,134,135,136,137,138,139,140,141) ) AND `u`.`lockUser` = '0' [ RunTime:0.001444s ]
SELECT `s`.`id` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay = 1) ) AND ( `partno` LIKE 'BSS84%' AND `status` <> 2 AND `categoryid` IN (132,133,134,135,136,137,138,139,140,141) ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.000994s ]
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 ('6413','247','5015','4529','16267','15247','7804') ORDER BY FIELD(s.id, 6413,247,5015,4529,16267,15247,7804) [ RunTime:0.002013s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002119s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6413 LIMIT 4 [ RunTime:0.003431s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001905s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6413 ORDER BY `minOrder` ASC [ RunTime:0.012139s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.003678s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6413 ORDER BY `unit` DESC [ RunTime:0.002481s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.003821s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6413 LIMIT 2 [ RunTime:0.013346s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6413 ORDER BY `minOrder` ASC [ RunTime:0.009491s ]
select * from pdf where partno='BSS84' and brandshort='ONSEMI' limit 1 [ RunTime:0.025353s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002482s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BSS84' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.020260s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 247 LIMIT 4 [ RunTime:0.002400s ]
SELECT * FROM `stock_price` WHERE `stockid` = 247 ORDER BY `minOrder` ASC [ RunTime:0.006549s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 247 ORDER BY `unit` DESC [ RunTime:0.008767s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 247 LIMIT 2 [ RunTime:0.003885s ]
SELECT * FROM `stock_price` WHERE `stockid` = 247 ORDER BY `minOrder` ASC [ RunTime:0.006928s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BSS84PH6327XTSA2' OR `brand` LIKE 'INFINEON%' ) ) LIMIT 1 [ RunTime:0.008629s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5015 LIMIT 4 [ RunTime:0.000418s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5015 ORDER BY `minOrder` ASC [ RunTime:0.000215s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5015 ORDER BY `unit` DESC [ RunTime:0.000203s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5015 LIMIT 2 [ RunTime:0.000202s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5015 ORDER BY `minOrder` ASC [ RunTime:0.000186s ]
select * from pdf where partno='BSS84AK,215' and brandshort='NEXPERIA' limit 1 [ RunTime:0.000390s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BSS84AK,215' OR `brand` LIKE 'NEXPERIA%' ) ) LIMIT 1 [ RunTime:0.000265s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4529 LIMIT 4 [ RunTime:0.004219s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4529 ORDER BY `minOrder` ASC [ RunTime:0.005787s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4529 ORDER BY `unit` DESC [ RunTime:0.011400s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4529 LIMIT 2 [ RunTime:0.002255s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4529 ORDER BY `minOrder` ASC [ RunTime:0.000653s ]
select * from pdf where partno='BSS84-7-F' and brandshort='DIODES INC.' limit 1 [ RunTime:0.004024s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BSS84-7-F' OR `brand` LIKE 'DIODES INC.%' ) ) LIMIT 1 [ RunTime:0.007863s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16267 LIMIT 4 [ RunTime:0.010340s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16267 ORDER BY `minOrder` ASC [ RunTime:0.001552s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16267 ORDER BY `unit` DESC [ RunTime:0.000529s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16267 LIMIT 2 [ RunTime:0.000483s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16267 ORDER BY `minOrder` ASC [ RunTime:0.000234s ]
select * from pdf where partno='BSS84' and brandshort='ONSEMI' limit 1 [ RunTime:0.000376s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BSS84' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.000281s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15247 LIMIT 4 [ RunTime:0.000406s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15247 ORDER BY `minOrder` ASC [ RunTime:0.009976s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15247 ORDER BY `unit` DESC [ RunTime:0.003389s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15247 LIMIT 2 [ RunTime:0.000609s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15247 ORDER BY `minOrder` ASC [ RunTime:0.000215s ]
select * from pdf where partno='BSS84' and brandshort='ONSEMI' limit 1 [ RunTime:0.000315s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BSS84' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.000289s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 7804 LIMIT 4 [ RunTime:0.000378s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7804 ORDER BY `minOrder` ASC [ RunTime:0.000603s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 7804 ORDER BY `unit` DESC [ RunTime:0.017936s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 7804 LIMIT 2 [ RunTime:0.004022s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7804 ORDER BY `minOrder` ASC [ RunTime:0.007472s ]
select * from pdf where partno='BSS84AKMB,315' and brandshort='NEXPERIA' limit 1 [ RunTime:0.003551s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BSS84AKMB,315' OR `brand` LIKE 'NEXPERIA%' ) ) LIMIT 1 [ RunTime:0.015334s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'BSS84%' AND `status` <> 2 AND `categoryid` IN (132,133,134,135,136,137,138,139,140,141) ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.004732s ]