SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002423s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000636s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002342s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.133' ) [ RunTime:0.000360s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001845s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000274s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 43 LIMIT 1 [ RunTime:0.000253s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 43 [ RunTime:0.000218s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` IN (489,490,491,492,493,494) [ RunTime:0.000254s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002005s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `status` <> 2 AND `categoryid` IN (489,490,491,492,493,494) ) AND `u`.`lockUser` = '0' [ RunTime:0.001082s ]
SELECT `s`.`id` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay = 1) ) AND ( `status` <> 2 AND `categoryid` IN (489,490,491,492,493,494) ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.000970s ]
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 ('1097','169','2438','168','15225','15120','2445','4465','13382','5755','1252','9574','9572') ORDER BY FIELD(s.id, 1097,169,2438,168,15225,15120,2445,4465,13382,5755,1252,9574,9572) [ RunTime:0.002147s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001628s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1097 LIMIT 4 [ RunTime:0.000319s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002175s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1097 ORDER BY `minOrder` ASC [ RunTime:0.000602s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001911s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1097 ORDER BY `unit` DESC [ RunTime:0.000638s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001946s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1097 LIMIT 2 [ RunTime:0.000514s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1097 ORDER BY `minOrder` ASC [ RunTime:0.001398s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.000864s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'PKLCS1212E4001-R1' OR `brand` LIKE 'MURATA%' ) ) LIMIT 1 [ RunTime:0.007585s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 169 LIMIT 4 [ RunTime:0.000678s ]
SELECT * FROM `stock_price` WHERE `stockid` = 169 ORDER BY `minOrder` ASC [ RunTime:0.001976s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 169 ORDER BY `unit` DESC [ RunTime:0.000823s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 169 LIMIT 2 [ RunTime:0.000766s ]
SELECT * FROM `stock_price` WHERE `stockid` = 169 ORDER BY `minOrder` ASC [ RunTime:0.000599s ]
select * from pdf where partno='ABI-009-RC' and brandshort='MULTICOMP PRO' limit 1 [ RunTime:0.001417s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ABI-009-RC' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.001345s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2438 LIMIT 4 [ RunTime:0.002119s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2438 ORDER BY `minOrder` ASC [ RunTime:0.001857s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2438 ORDER BY `unit` DESC [ RunTime:0.000879s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2438 LIMIT 2 [ RunTime:0.000845s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2438 ORDER BY `minOrder` ASC [ RunTime:0.000934s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'KPEG242' OR `brand` LIKE 'KINGSTATE%' ) ) LIMIT 1 [ RunTime:0.001710s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 168 LIMIT 4 [ RunTime:0.001674s ]
SELECT * FROM `stock_price` WHERE `stockid` = 168 ORDER BY `minOrder` ASC [ RunTime:0.001495s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 168 ORDER BY `unit` DESC [ RunTime:0.000654s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 168 LIMIT 2 [ RunTime:0.003648s ]
SELECT * FROM `stock_price` WHERE `stockid` = 168 ORDER BY `minOrder` ASC [ RunTime:0.000457s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ABI-001-RC' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.000468s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15225 LIMIT 4 [ RunTime:0.000860s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15225 ORDER BY `minOrder` ASC [ RunTime:0.001633s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15225 ORDER BY `unit` DESC [ RunTime:0.000425s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15225 LIMIT 2 [ RunTime:0.000839s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15225 ORDER BY `minOrder` ASC [ RunTime:0.001543s ]
select * from pdf where partno='ABI-001-RC' and brandshort='MULTICOMP PRO' limit 1 [ RunTime:0.000670s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ABI-001-RC' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.001538s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15120 LIMIT 4 [ RunTime:0.000700s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15120 ORDER BY `minOrder` ASC [ RunTime:0.001739s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15120 ORDER BY `unit` DESC [ RunTime:0.001413s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15120 LIMIT 2 [ RunTime:0.000743s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15120 ORDER BY `minOrder` ASC [ RunTime:0.001379s ]
select * from pdf where partno='ABI-001-RC' and brandshort='MULTICOMP PRO' limit 1 [ RunTime:0.000583s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ABI-001-RC' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.000438s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2445 LIMIT 4 [ RunTime:0.000809s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2445 ORDER BY `minOrder` ASC [ RunTime:0.004510s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2445 ORDER BY `unit` DESC [ RunTime:0.000660s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2445 LIMIT 2 [ RunTime:0.001447s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2445 ORDER BY `minOrder` ASC [ RunTime:0.001017s ]
select * from pdf where partno='ABI-017-RC' and brandshort='MULTICOMP PRO' limit 1 [ RunTime:0.002647s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ABI-017-RC' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.001011s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4465 LIMIT 4 [ RunTime:0.001783s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4465 ORDER BY `minOrder` ASC [ RunTime:0.002536s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4465 ORDER BY `unit` DESC [ RunTime:0.001631s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4465 LIMIT 2 [ RunTime:0.001136s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4465 ORDER BY `minOrder` ASC [ RunTime:0.001716s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'AI-1440-TWT-12V-R' OR `brand` LIKE 'PROJECTS UNLIMITED%' ) ) LIMIT 1 [ RunTime:0.002108s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13382 LIMIT 4 [ RunTime:0.001935s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13382 ORDER BY `minOrder` ASC [ RunTime:0.001891s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13382 ORDER BY `unit` DESC [ RunTime:0.000368s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13382 LIMIT 2 [ RunTime:0.000900s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13382 ORDER BY `minOrder` ASC [ RunTime:0.001868s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '10901075' OR `brand` LIKE 'WERMA%' ) ) LIMIT 1 [ RunTime:0.000397s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5755 LIMIT 4 [ RunTime:0.000656s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5755 ORDER BY `minOrder` ASC [ RunTime:0.003130s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5755 ORDER BY `unit` DESC [ RunTime:0.001690s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5755 LIMIT 2 [ RunTime:0.001672s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5755 ORDER BY `minOrder` ASC [ RunTime:0.001025s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'KXG1212C' OR `brand` LIKE 'KINGSTATE%' ) ) LIMIT 1 [ RunTime:0.001167s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1252 LIMIT 4 [ RunTime:0.002071s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1252 ORDER BY `minOrder` ASC [ RunTime:0.001287s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1252 ORDER BY `unit` DESC [ RunTime:0.000287s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1252 LIMIT 2 [ RunTime:0.000486s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1252 ORDER BY `minOrder` ASC [ RunTime:0.001471s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '15010055' OR `brand` LIKE 'WERMA%' ) ) LIMIT 1 [ RunTime:0.000294s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9574 LIMIT 4 [ RunTime:0.000610s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9574 ORDER BY `minOrder` ASC [ RunTime:0.001122s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9574 ORDER BY `unit` DESC [ RunTime:0.000276s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9574 LIMIT 2 [ RunTime:0.000483s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9574 ORDER BY `minOrder` ASC [ RunTime:0.001414s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '31-801.002' OR `brand` LIKE 'EAO%' ) ) LIMIT 1 [ RunTime:0.000298s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9572 LIMIT 4 [ RunTime:0.000613s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9572 ORDER BY `minOrder` ASC [ RunTime:0.001513s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9572 ORDER BY `unit` DESC [ RunTime:0.001607s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9572 LIMIT 2 [ RunTime:0.001293s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9572 ORDER BY `minOrder` ASC [ RunTime:0.001114s ]
select * from pdf where partno='LB6MZ-1T04' and brandshort='IDEC' limit 1 [ RunTime:0.002119s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'LB6MZ-1T04' OR `brand` LIKE 'IDEC%' ) ) LIMIT 1 [ RunTime:0.001427s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `status` <> 2 AND `categoryid` IN (489,490,491,492,493,494) ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.002068s ]