SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002993s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.001473s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002543s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.113' ) [ RunTime:0.001484s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002775s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.001150s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 25 LIMIT 1 [ RunTime:0.000290s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 25 [ RunTime:0.000280s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` IN (147,148,149,150,151,152,153,154,155,156,157,158,159) [ RunTime:0.000299s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002002s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `status` = 4 AND `status` <> 2 AND `categoryid` IN (147,148,149,150,151,152,153,154,155,156,157,158,159) ) AND `u`.`lockUser` = '0' [ RunTime:0.002036s ]
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` = 4 AND `status` <> 2 AND `categoryid` IN (147,148,149,150,151,152,153,154,155,156,157,158,159) ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.001443s ]
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 ('16087','16065','15638','15607','15605','15582','15476') ORDER BY FIELD(s.id, 16087,16065,15638,15607,15605,15582,15476) [ RunTime:0.004543s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001182s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16087 LIMIT 4 [ RunTime:0.002063s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001137s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16087 ORDER BY `minOrder` ASC [ RunTime:0.000394s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001358s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16087 ORDER BY `unit` DESC [ RunTime:0.006993s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001473s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16087 LIMIT 2 [ RunTime:0.002019s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16087 ORDER BY `minOrder` ASC [ RunTime:0.002057s ]
select * from pdf where partno='BK-HKP-R' and brandshort='EATON BUSSMANN' limit 1 [ RunTime:0.004277s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001190s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BK-HKP-R' OR `brand` LIKE 'EATON BUSSMANN%' ) ) LIMIT 1 [ RunTime:0.014842s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16065 LIMIT 4 [ RunTime:0.014157s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16065 ORDER BY `minOrder` ASC [ RunTime:0.000680s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16065 ORDER BY `unit` DESC [ RunTime:0.014190s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16065 LIMIT 2 [ RunTime:0.014456s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16065 ORDER BY `minOrder` ASC [ RunTime:0.000932s ]
select * from pdf where partno='V100ZA15P' and brandshort='LITTELFUSE' limit 1 [ RunTime:0.004273s ]
select foldpath,foldpath2,filename from pdf_file where id=179201 limit 1 [ RunTime:0.005475s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'V100ZA15P' OR `brand` LIKE 'LITTELFUSE%' ) ) LIMIT 1 [ RunTime:0.018798s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15638 LIMIT 4 [ RunTime:0.006961s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15638 ORDER BY `minOrder` ASC [ RunTime:0.002263s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15638 ORDER BY `unit` DESC [ RunTime:0.007857s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15638 LIMIT 2 [ RunTime:0.000834s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15638 ORDER BY `minOrder` ASC [ RunTime:0.000212s ]
select * from pdf where partno='B72207S0251K101' and brandshort='EPCOS' limit 1 [ RunTime:0.009371s ]
select foldpath,foldpath2,filename from pdf_file where id=566331 limit 1 [ RunTime:0.009552s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'B72207S0251K101' OR `brand` LIKE 'EPCOS%' ) ) LIMIT 1 [ RunTime:0.004609s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15607 LIMIT 4 [ RunTime:0.020942s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15607 ORDER BY `minOrder` ASC [ RunTime:0.032599s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15607 ORDER BY `unit` DESC [ RunTime:0.017616s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15607 LIMIT 2 [ RunTime:0.009193s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15607 ORDER BY `minOrder` ASC [ RunTime:0.008272s ]
select * from pdf where partno='4245C' and brandshort='KEYSTONE' limit 1 [ RunTime:0.014608s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '4245C' OR `brand` LIKE 'KEYSTONE%' ) ) LIMIT 1 [ RunTime:0.019154s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15605 LIMIT 4 [ RunTime:0.028582s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15605 ORDER BY `minOrder` ASC [ RunTime:0.007630s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15605 ORDER BY `unit` DESC [ RunTime:0.020058s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15605 LIMIT 2 [ RunTime:0.004044s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15605 ORDER BY `minOrder` ASC [ RunTime:0.007676s ]
select * from pdf where partno='MF-NSMF020-2' and brandshort='BOURNS' limit 1 [ RunTime:0.010373s ]
select foldpath,foldpath2,filename from pdf_file where id=595703 limit 1 [ RunTime:0.043715s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MF-NSMF020-2' OR `brand` LIKE 'BOURNS%' ) ) LIMIT 1 [ RunTime:0.020349s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15582 LIMIT 4 [ RunTime:0.003376s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15582 ORDER BY `minOrder` ASC [ RunTime:0.012413s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15582 ORDER BY `unit` DESC [ RunTime:0.011121s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15582 LIMIT 2 [ RunTime:0.013320s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15582 ORDER BY `minOrder` ASC [ RunTime:0.003017s ]
select * from pdf where partno='82000000005' and brandshort='LITTELFUSE' limit 1 [ RunTime:0.014961s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '82000000005' OR `brand` LIKE 'LITTELFUSE%' ) ) LIMIT 1 [ RunTime:0.014513s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15476 LIMIT 4 [ RunTime:0.013889s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15476 ORDER BY `minOrder` ASC [ RunTime:0.014193s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15476 ORDER BY `unit` DESC [ RunTime:0.001653s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15476 LIMIT 2 [ RunTime:0.017421s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15476 ORDER BY `minOrder` ASC [ RunTime:0.005505s ]
select * from pdf where partno='RUEF185' and brandshort='LITTELFUSE' limit 1 [ RunTime:0.001165s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'RUEF185' OR `brand` LIKE 'LITTELFUSE%' ) ) LIMIT 1 [ RunTime:0.000793s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `status` = 4 AND `status` <> 2 AND `categoryid` IN (147,148,149,150,151,152,153,154,155,156,157,158,159) ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.018100s ]