SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002970s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.006848s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001669s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '18.97.14.89' ) [ RunTime:0.000450s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001200s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000385s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 149 [ RunTime:0.000349s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 149 LIMIT 1 [ RunTime:0.000246s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002684s ]
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.001047s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002562s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3872 LIMIT 5 [ RunTime:0.000496s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001989s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3872 ORDER BY `minOrder` ASC [ RunTime:0.001668s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001984s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3872 ORDER BY `unit` DESC [ RunTime:0.000679s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001973s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3872 LIMIT 2 [ RunTime:0.000656s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3872 ORDER BY `minOrder` ASC [ RunTime:0.000520s ]
select * from pdf where partno='CG75L' and brandshort='LITTELFUSE' limit 1 [ RunTime:0.001956s ]
select foldpath,foldpath2,filename from pdf_file where id=1191817 limit 1 [ RunTime:0.000413s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001224s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CG75L' OR `brand` LIKE 'LITTELFUSE%' ) ) LIMIT 1 [ RunTime:0.005037s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 12374 LIMIT 5 [ RunTime:0.000310s ]
SELECT * FROM `stock_price` WHERE `stockid` = 12374 ORDER BY `minOrder` ASC [ RunTime:0.000658s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 12374 ORDER BY `unit` DESC [ RunTime:0.000520s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 12374 LIMIT 2 [ RunTime:0.000512s ]
SELECT * FROM `stock_price` WHERE `stockid` = 12374 ORDER BY `minOrder` ASC [ RunTime:0.000312s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'B88069X1913T902' OR `brand` LIKE 'EPCOS%' ) ) LIMIT 1 [ RunTime:0.000599s ]
SELECT `id` FROM `stock` WHERE `id` <> 12374 AND `partno` = 'B88069X1913T902' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%epcos%' ) [ RunTime:0.004552s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13900170 [ RunTime:0.005374s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6786 LIMIT 5 [ RunTime:0.000299s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6786 ORDER BY `minOrder` ASC [ RunTime:0.001489s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6786 ORDER BY `unit` DESC [ RunTime:0.000308s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6786 LIMIT 2 [ RunTime:0.000283s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6786 ORDER BY `minOrder` ASC [ RunTime:0.000322s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2036-07-SMLF' OR `brand` LIKE 'BOURNS%' ) ) LIMIT 1 [ RunTime:0.001985s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5513 LIMIT 5 [ RunTime:0.000314s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5513 ORDER BY `minOrder` ASC [ RunTime:0.002353s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5513 ORDER BY `unit` DESC [ RunTime:0.000292s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5513 LIMIT 2 [ RunTime:0.000289s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5513 ORDER BY `minOrder` ASC [ RunTime:0.000321s ]
select * from pdf where partno='CG35.0L' and brandshort='LITTELFUSE' limit 1 [ RunTime:0.002771s ]
select foldpath,foldpath2,filename from pdf_file where id=1114268 limit 1 [ RunTime:0.000387s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CG35.0L' OR `brand` LIKE 'LITTELFUSE%' ) ) LIMIT 1 [ RunTime:0.004869s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5693 LIMIT 5 [ RunTime:0.000308s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5693 ORDER BY `minOrder` ASC [ RunTime:0.002298s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5693 ORDER BY `unit` DESC [ RunTime:0.000309s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5693 LIMIT 2 [ RunTime:0.000280s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5693 ORDER BY `minOrder` ASC [ RunTime:0.000305s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2097-200-DLF' OR `brand` LIKE 'BOURNS%' ) ) LIMIT 1 [ RunTime:0.002015s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5692 LIMIT 5 [ RunTime:0.000365s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5692 ORDER BY `minOrder` ASC [ RunTime:0.000396s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5692 ORDER BY `unit` DESC [ RunTime:0.000313s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5692 LIMIT 2 [ RunTime:0.000296s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5692 ORDER BY `minOrder` ASC [ RunTime:0.000327s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2049-25-BLF' OR `brand` LIKE 'BOURNS%' ) ) LIMIT 1 [ RunTime:0.002116s ]
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.000463s ]
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.000533s ]