SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002487s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000747s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002386s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.217.79' ) [ RunTime:0.000337s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001879s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000278s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 25 LIMIT 1 [ RunTime:0.000346s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 25 [ RunTime:0.000268s ]
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.000276s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002062s ]
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.001645s ]
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.009577s ]
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.014319s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002287s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16087 LIMIT 4 [ RunTime:0.002105s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002002s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16087 ORDER BY `minOrder` ASC [ RunTime:0.000370s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001910s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16087 ORDER BY `unit` DESC [ RunTime:0.000352s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001807s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16087 LIMIT 2 [ RunTime:0.000782s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16087 ORDER BY `minOrder` ASC [ RunTime:0.002539s ]
select * from pdf where partno='BK-HKP-R' and brandshort='EATON BUSSMANN' limit 1 [ RunTime:0.000483s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001690s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BK-HKP-R' OR `brand` LIKE 'EATON BUSSMANN%' ) ) LIMIT 1 [ RunTime:0.000297s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16065 LIMIT 4 [ RunTime:0.000445s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16065 ORDER BY `minOrder` ASC [ RunTime:0.001428s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16065 ORDER BY `unit` DESC [ RunTime:0.000368s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16065 LIMIT 2 [ RunTime:0.000447s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16065 ORDER BY `minOrder` ASC [ RunTime:0.000273s ]
select * from pdf where partno='V100ZA15P' and brandshort='LITTELFUSE' limit 1 [ RunTime:0.002156s ]
select foldpath,foldpath2,filename from pdf_file where id=179201 limit 1 [ RunTime:0.001829s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'V100ZA15P' OR `brand` LIKE 'LITTELFUSE%' ) ) LIMIT 1 [ RunTime:0.014187s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15638 LIMIT 4 [ RunTime:0.014007s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15638 ORDER BY `minOrder` ASC [ RunTime:0.004872s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15638 ORDER BY `unit` DESC [ RunTime:0.003186s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15638 LIMIT 2 [ RunTime:0.011226s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15638 ORDER BY `minOrder` ASC [ RunTime:0.001200s ]
select * from pdf where partno='B72207S0251K101' and brandshort='EPCOS' limit 1 [ RunTime:0.003573s ]
select foldpath,foldpath2,filename from pdf_file where id=566331 limit 1 [ RunTime:0.000295s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'B72207S0251K101' OR `brand` LIKE 'EPCOS%' ) ) LIMIT 1 [ RunTime:0.000899s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15607 LIMIT 4 [ RunTime:0.000363s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15607 ORDER BY `minOrder` ASC [ RunTime:0.002520s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15607 ORDER BY `unit` DESC [ RunTime:0.004230s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15607 LIMIT 2 [ RunTime:0.012496s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15607 ORDER BY `minOrder` ASC [ RunTime:0.012787s ]
select * from pdf where partno='4245C' and brandshort='KEYSTONE' limit 1 [ RunTime:0.001688s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '4245C' OR `brand` LIKE 'KEYSTONE%' ) ) LIMIT 1 [ RunTime:0.004087s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15605 LIMIT 4 [ RunTime:0.001796s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15605 ORDER BY `minOrder` ASC [ RunTime:0.001870s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15605 ORDER BY `unit` DESC [ RunTime:0.005207s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15605 LIMIT 2 [ RunTime:0.003631s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15605 ORDER BY `minOrder` ASC [ RunTime:0.008006s ]
select * from pdf where partno='MF-NSMF020-2' and brandshort='BOURNS' limit 1 [ RunTime:0.003076s ]
select foldpath,foldpath2,filename from pdf_file where id=595703 limit 1 [ RunTime:0.000332s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MF-NSMF020-2' OR `brand` LIKE 'BOURNS%' ) ) LIMIT 1 [ RunTime:0.000348s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15582 LIMIT 4 [ RunTime:0.000919s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15582 ORDER BY `minOrder` ASC [ RunTime:0.013929s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15582 ORDER BY `unit` DESC [ RunTime:0.004662s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15582 LIMIT 2 [ RunTime:0.000693s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15582 ORDER BY `minOrder` ASC [ RunTime:0.000246s ]
select * from pdf where partno='82000000005' and brandshort='LITTELFUSE' limit 1 [ RunTime:0.001355s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '82000000005' OR `brand` LIKE 'LITTELFUSE%' ) ) LIMIT 1 [ RunTime:0.009266s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15476 LIMIT 4 [ RunTime:0.000516s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15476 ORDER BY `minOrder` ASC [ RunTime:0.000237s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15476 ORDER BY `unit` DESC [ RunTime:0.000210s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15476 LIMIT 2 [ RunTime:0.000204s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15476 ORDER BY `minOrder` ASC [ RunTime:0.000377s ]
select * from pdf where partno='RUEF185' and brandshort='LITTELFUSE' limit 1 [ RunTime:0.000332s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'RUEF185' OR `brand` LIKE 'LITTELFUSE%' ) ) LIMIT 1 [ RunTime:0.000273s ]
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.001986s ]