SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001401s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000511s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001657s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '18.97.14.88' ) [ RunTime:0.003508s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001222s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.015893s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 149 [ RunTime:0.001485s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 149 LIMIT 1 [ RunTime:0.000549s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001613s ]
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` = '149' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.003895s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001549s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3872 LIMIT 5 [ RunTime:0.003566s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002513s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3872 ORDER BY `minOrder` ASC [ RunTime:0.001997s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.004062s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3872 ORDER BY `unit` DESC [ RunTime:0.002308s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.004781s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3872 LIMIT 2 [ RunTime:0.005504s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3872 ORDER BY `minOrder` ASC [ RunTime:0.010853s ]
select * from pdf where partno='CG75L' and brandshort='LITTELFUSE' limit 1 [ RunTime:0.003085s ]
select foldpath,foldpath2,filename from pdf_file where id=1191817 limit 1 [ RunTime:0.002352s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.004288s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CG75L' OR `brand` LIKE 'LITTELFUSE%' ) ) LIMIT 1 [ RunTime:0.011755s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 12374 LIMIT 5 [ RunTime:0.001048s ]
SELECT * FROM `stock_price` WHERE `stockid` = 12374 ORDER BY `minOrder` ASC [ RunTime:0.003184s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 12374 ORDER BY `unit` DESC [ RunTime:0.006888s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 12374 LIMIT 2 [ RunTime:0.005110s ]
SELECT * FROM `stock_price` WHERE `stockid` = 12374 ORDER BY `minOrder` ASC [ RunTime:0.001220s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'B88069X1913T902' OR `brand` LIKE 'EPCOS%' ) ) LIMIT 1 [ RunTime:0.003269s ]
SELECT `id` FROM `stock` WHERE `id` <> 12374 AND `partno` = 'B88069X1913T902' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%epcos%' ) [ RunTime:0.006529s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13900170 [ RunTime:0.000786s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6786 LIMIT 5 [ RunTime:0.000572s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6786 ORDER BY `minOrder` ASC [ RunTime:0.014360s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6786 ORDER BY `unit` DESC [ RunTime:0.001909s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6786 LIMIT 2 [ RunTime:0.000421s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6786 ORDER BY `minOrder` ASC [ RunTime:0.000219s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2036-07-SMLF' OR `brand` LIKE 'BOURNS%' ) ) LIMIT 1 [ RunTime:0.004467s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5513 LIMIT 5 [ RunTime:0.031959s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5513 ORDER BY `minOrder` ASC [ RunTime:0.009347s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5513 ORDER BY `unit` DESC [ RunTime:0.013862s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5513 LIMIT 2 [ RunTime:0.005886s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5513 ORDER BY `minOrder` ASC [ RunTime:0.013869s ]
select * from pdf where partno='CG35.0L' and brandshort='LITTELFUSE' limit 1 [ RunTime:0.004136s ]
select foldpath,foldpath2,filename from pdf_file where id=1114268 limit 1 [ RunTime:0.004145s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CG35.0L' OR `brand` LIKE 'LITTELFUSE%' ) ) LIMIT 1 [ RunTime:0.040952s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5693 LIMIT 5 [ RunTime:0.032464s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5693 ORDER BY `minOrder` ASC [ RunTime:0.007542s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5693 ORDER BY `unit` DESC [ RunTime:0.004070s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5693 LIMIT 2 [ RunTime:0.008821s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5693 ORDER BY `minOrder` ASC [ RunTime:0.000631s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2097-200-DLF' OR `brand` LIKE 'BOURNS%' ) ) LIMIT 1 [ RunTime:0.014729s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5692 LIMIT 5 [ RunTime:0.014850s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5692 ORDER BY `minOrder` ASC [ RunTime:0.010653s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5692 ORDER BY `unit` DESC [ RunTime:0.012052s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5692 LIMIT 2 [ RunTime:0.016303s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5692 ORDER BY `minOrder` ASC [ RunTime:0.008482s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2049-25-BLF' OR `brand` LIKE 'BOURNS%' ) ) LIMIT 1 [ RunTime:0.009351s ]
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` = '149' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.020066s ]
SELECT brand, count(*) as count FROM ( SELECT `brand` FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '149' ) LIMIT 6 ) tmp GROUP BY `brand` [ RunTime:0.021839s ]