SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001299s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000484s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001099s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.43' ) [ RunTime:0.000209s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.000871s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000185s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 22 LIMIT 1 [ RunTime:0.000174s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 22 [ RunTime:0.000150s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` IN (132,133,134,135,136,137,138,139,140,141) [ RunTime:0.000202s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.000958s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `partno` LIKE 'SIR462DP-T1-GE3%' AND `status` <> 2 AND `categoryid` IN (132,133,134,135,136,137,138,139,140,141) ) [ RunTime:0.003565s ]
SELECT `s`.`id`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `partno` LIKE 'SIR462DP-T1-GE3%' 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.001139s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.000996s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 14978 LIMIT 4 [ RunTime:0.000368s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001348s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14978 ORDER BY `minOrder` ASC [ RunTime:0.000294s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001627s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 14978 ORDER BY `unit` DESC [ RunTime:0.000245s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001630s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 14978 LIMIT 2 [ RunTime:0.000241s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14978 ORDER BY `minOrder` ASC [ RunTime:0.000229s ]
select * from pdf where partno='SIR462DP-T1-GE3' and brandshort='VISHAY' limit 1 [ RunTime:0.000435s ]
select foldpath,foldpath2,filename from pdf_file where id=1049685 limit 1 [ RunTime:0.000244s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001527s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'SIR462DP-T1-GE3' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.000231s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16493 LIMIT 4 [ RunTime:0.004585s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16493 ORDER BY `minOrder` ASC [ RunTime:0.000988s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16493 ORDER BY `unit` DESC [ RunTime:0.000674s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16493 LIMIT 2 [ RunTime:0.000507s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16493 ORDER BY `minOrder` ASC [ RunTime:0.000188s ]
select * from pdf where partno='SIR462DP-T1-GE3' and brandshort='VISHAY' limit 1 [ RunTime:0.000394s ]
select foldpath,foldpath2,filename from pdf_file where id=1049685 limit 1 [ RunTime:0.000273s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'SIR462DP-T1-GE3' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.000197s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15473 LIMIT 4 [ RunTime:0.000290s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15473 ORDER BY `minOrder` ASC [ RunTime:0.000283s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15473 ORDER BY `unit` DESC [ RunTime:0.000233s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15473 LIMIT 2 [ RunTime:0.002970s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15473 ORDER BY `minOrder` ASC [ RunTime:0.003288s ]
select * from pdf where partno='SIR462DP-T1-GE3' and brandshort='VISHAY' limit 1 [ RunTime:0.000438s ]
select foldpath,foldpath2,filename from pdf_file where id=1049685 limit 1 [ RunTime:0.000265s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'SIR462DP-T1-GE3' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.000194s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6537 LIMIT 4 [ RunTime:0.000325s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6537 ORDER BY `minOrder` ASC [ RunTime:0.000236s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6537 ORDER BY `unit` DESC [ RunTime:0.002331s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6537 LIMIT 2 [ RunTime:0.007391s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6537 ORDER BY `minOrder` ASC [ RunTime:0.004886s ]
select * from pdf where partno='SIR462DP-T1-GE3' and brandshort='VISHAY' limit 1 [ RunTime:0.000600s ]
select foldpath,foldpath2,filename from pdf_file where id=1049685 limit 1 [ RunTime:0.000262s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'SIR462DP-T1-GE3' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.000213s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'SIR462DP-T1-GE3%' 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.003409s ]