SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002031s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000518s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002151s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.43' ) [ RunTime:0.000315s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002272s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000294s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 485 LIMIT 1 [ RunTime:0.000284s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 485 [ RunTime:0.000224s ]
SELECT `id`,`name` FROM `product_type` WHERE `typeid` = 42 [ RunTime:0.000215s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002011s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `status` <> 2 AND `categoryid` = 485 ) [ RunTime:0.000796s ]
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 ( `status` <> 2 AND `categoryid` = 485 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.003710s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001968s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6049 LIMIT 4 [ RunTime:0.004118s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001839s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6049 ORDER BY `minOrder` ASC [ RunTime:0.000586s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001662s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6049 ORDER BY `unit` DESC [ RunTime:0.000420s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002133s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6049 LIMIT 2 [ RunTime:0.000414s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6049 ORDER BY `minOrder` ASC [ RunTime:0.000381s ]
select * from pdf where partno='HE721C0500' and brandshort='LITTELFUSE' limit 1 [ RunTime:0.003620s ]
select foldpath,foldpath2,filename from pdf_file where id=1678321 limit 1 [ RunTime:0.005285s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001414s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'HE721C0500' OR `brand` LIKE 'LITTELFUSE%' ) ) LIMIT 1 [ RunTime:0.009997s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6654 LIMIT 4 [ RunTime:0.002678s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6654 ORDER BY `minOrder` ASC [ RunTime:0.002391s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6654 ORDER BY `unit` DESC [ RunTime:0.003657s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6654 LIMIT 2 [ RunTime:0.000688s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6654 ORDER BY `minOrder` ASC [ RunTime:0.000294s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2271-12-001' OR `brand` LIKE 'COTO TECHNOLOGY%' ) ) LIMIT 1 [ RunTime:0.000974s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 286 LIMIT 4 [ RunTime:0.001027s ]
SELECT * FROM `stock_price` WHERE `stockid` = 286 ORDER BY `minOrder` ASC [ RunTime:0.000438s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 286 ORDER BY `unit` DESC [ RunTime:0.002143s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 286 LIMIT 2 [ RunTime:0.004872s ]
SELECT * FROM `stock_price` WHERE `stockid` = 286 ORDER BY `minOrder` ASC [ RunTime:0.000309s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2332-12-000' OR `brand` LIKE 'COTO TECHNOLOGY%' ) ) LIMIT 1 [ RunTime:0.000961s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9570 LIMIT 4 [ RunTime:0.000389s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9570 ORDER BY `minOrder` ASC [ RunTime:0.000409s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9570 ORDER BY `unit` DESC [ RunTime:0.000431s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9570 LIMIT 2 [ RunTime:0.000770s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9570 ORDER BY `minOrder` ASC [ RunTime:0.012244s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'LI12-1A85' OR `brand` LIKE 'STANDEXMEDER%' ) ) LIMIT 1 [ RunTime:0.005101s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `status` <> 2 AND `categoryid` = 485 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.005434s ]