SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001547s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.013111s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001482s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '18.97.9.169' ) [ RunTime:0.024772s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002080s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.021688s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 293 [ RunTime:0.003915s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 293 LIMIT 1 [ RunTime:0.019767s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001663s ]
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` FORCE INDEX ( idx_categoryid ) LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '293' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.016860s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.008844s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13800 LIMIT 5 [ RunTime:0.013616s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.007977s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13800 ORDER BY `minOrder` ASC [ RunTime:0.010292s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.006592s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13800 ORDER BY `unit` DESC [ RunTime:0.038549s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.005985s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13800 LIMIT 2 [ RunTime:0.028181s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13800 ORDER BY `minOrder` ASC [ RunTime:0.012821s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.003271s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MFP201N-RA' OR `brand` LIKE 'KNITTER-SWITCH%' ) ) LIMIT 1 [ RunTime:0.014792s ]
SELECT `id` FROM `stock` WHERE `id` <> 13800 AND `partno` = 'MFP201N-RA' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%knitter-switch%' ) [ RunTime:0.000934s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 7171 LIMIT 5 [ RunTime:0.003103s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7171 ORDER BY `minOrder` ASC [ RunTime:0.023115s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 7171 ORDER BY `unit` DESC [ RunTime:0.008914s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 7171 LIMIT 2 [ RunTime:0.007695s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7171 ORDER BY `minOrder` ASC [ RunTime:0.000314s ]
select * from pdf where partno='OS102011MA1QS1' and brandshort='C&K COMPONENTS' limit 1 [ RunTime:0.008638s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'OS102011MA1QS1' OR `brand` LIKE 'C&K COMPONENTS%' ) ) LIMIT 1 [ RunTime:0.003570s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15179 LIMIT 5 [ RunTime:0.014316s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15179 ORDER BY `minOrder` ASC [ RunTime:0.003381s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15179 ORDER BY `unit` DESC [ RunTime:0.000595s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15179 LIMIT 2 [ RunTime:0.000540s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15179 ORDER BY `minOrder` ASC [ RunTime:0.001217s ]
select * from pdf where partno='EG2308' and brandshort='E-SWITCH' limit 1 [ RunTime:0.011580s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'EG2308' OR `brand` LIKE 'E-SWITCH%' ) ) LIMIT 1 [ RunTime:0.007823s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15074 LIMIT 5 [ RunTime:0.000413s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15074 ORDER BY `minOrder` ASC [ RunTime:0.003253s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15074 ORDER BY `unit` DESC [ RunTime:0.006166s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15074 LIMIT 2 [ RunTime:0.002835s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15074 ORDER BY `minOrder` ASC [ RunTime:0.008345s ]
select * from pdf where partno='EG2308' and brandshort='E-SWITCH' limit 1 [ RunTime:0.012423s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'EG2308' OR `brand` LIKE 'E-SWITCH%' ) ) LIMIT 1 [ RunTime:0.001674s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 10219 LIMIT 5 [ RunTime:0.000440s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10219 ORDER BY `minOrder` ASC [ RunTime:0.019716s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 10219 ORDER BY `unit` DESC [ RunTime:0.014747s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 10219 LIMIT 2 [ RunTime:0.008360s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10219 ORDER BY `minOrder` ASC [ RunTime:0.009594s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CAS-D20B.' OR `brand` LIKE 'NIDEC COMPONENTS%' ) ) LIMIT 1 [ RunTime:0.015713s ]
SELECT `id` FROM `stock` WHERE `id` <> 10219 AND `partno` = 'CAS-D20B.' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%nidec components%' ) [ RunTime:0.011980s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1978 LIMIT 5 [ RunTime:0.009298s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1978 ORDER BY `minOrder` ASC [ RunTime:0.007562s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1978 ORDER BY `unit` DESC [ RunTime:0.004979s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1978 LIMIT 2 [ RunTime:0.026958s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1978 ORDER BY `minOrder` ASC [ RunTime:0.007589s ]
select * from pdf where partno='1103M2S3CQE2' and brandshort='C&K COMPONENTS' limit 1 [ RunTime:0.012802s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1103M2S3CQE2' OR `brand` LIKE 'C&K COMPONENTS%' ) ) LIMIT 1 [ RunTime:0.006121s ]
SELECT `id` FROM `stock` WHERE `id` <> 1978 AND `partno` = '1103M2S3CQE2' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%c&k components%' ) [ RunTime:0.013159s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9791 LIMIT 5 [ RunTime:0.016181s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9791 ORDER BY `minOrder` ASC [ RunTime:0.013225s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9791 ORDER BY `unit` DESC [ RunTime:0.000350s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9791 LIMIT 2 [ RunTime:0.025875s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9791 ORDER BY `minOrder` ASC [ RunTime:0.005712s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CL-SB-22B-11T' OR `brand` LIKE 'NIDEC COMPONENTS%' ) ) LIMIT 1 [ RunTime:0.005993s ]
SELECT `id` FROM `stock` WHERE `id` <> 9791 AND `partno` = 'CL-SB-22B-11T' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%nidec components%' ) [ RunTime:0.011321s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9697 LIMIT 5 [ RunTime:0.023443s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9697 ORDER BY `minOrder` ASC [ RunTime:0.020505s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9697 ORDER BY `unit` DESC [ RunTime:0.040374s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9697 LIMIT 2 [ RunTime:0.018055s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9697 ORDER BY `minOrder` ASC [ RunTime:0.017597s ]
select * from pdf where partno='EG2308' and brandshort='E-SWITCH' limit 1 [ RunTime:0.008717s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'EG2308' OR `brand` LIKE 'E-SWITCH%' ) ) LIMIT 1 [ RunTime:0.037170s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 10213 LIMIT 5 [ RunTime:0.001878s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10213 ORDER BY `minOrder` ASC [ RunTime:0.016442s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 10213 ORDER BY `unit` DESC [ RunTime:0.057601s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 10213 LIMIT 2 [ RunTime:0.036686s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10213 ORDER BY `minOrder` ASC [ RunTime:0.010793s ]
select * from pdf where partno='JS102011JCQN' and brandshort='C&K COMPONENTS' limit 1 [ RunTime:0.050993s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'JS102011JCQN' OR `brand` LIKE 'C&K COMPONENTS%' ) ) LIMIT 1 [ RunTime:0.023862s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9792 LIMIT 5 [ RunTime:0.085572s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9792 ORDER BY `minOrder` ASC [ RunTime:0.121177s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9792 ORDER BY `unit` DESC [ RunTime:0.043299s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9792 LIMIT 2 [ RunTime:0.023627s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9792 ORDER BY `minOrder` ASC [ RunTime:0.019030s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MFS101D-14-Z' OR `brand` LIKE 'NIDEC COMPONENTS%' ) ) LIMIT 1 [ RunTime:0.073104s ]
SELECT `id` FROM `stock` WHERE `id` <> 9792 AND `partno` = 'MFS101D-14-Z' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%nidec components%' ) [ RunTime:0.061582s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 58469757 [ RunTime:0.052473s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15431148 [ RunTime:0.034613s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` FORCE INDEX ( idx_categoryid ) LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '293' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.040679s ]
SELECT brand, count(*) as count FROM ( SELECT `brand` FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '293' ) LIMIT 10 ) tmp GROUP BY `brand` [ RunTime:0.012349s ]