SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002311s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000492s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002827s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.186' ) [ RunTime:0.000387s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002147s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000353s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000659s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000307s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,800,1068,1296,1456,1822,1929,2017,2101,2342,2393,2475,2518,2568) [ RunTime:0.000715s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002729s ]
SELECT `s`.`id` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay IS NULL OR s.isDisplay = 1) ) AND ( `partno` LIKE 'ULN2803A%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.003484s ]
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 IS NULL OR s.isDisplay = 1) ) AND `s`.`id` IN ('9057559','5264495','5264568','9057560','387','30775','9155544','9059838','9059262','9058378','9058377','6007931','6007848','6007519','6007308','4624554') ORDER BY FIELD(s.id, 9057559,5264495,5264568,9057560,387,30775,9155544,9059838,9059262,9058378,9058377,6007931,6007848,6007519,6007308,4624554) [ RunTime:0.008187s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001310s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9057559 LIMIT 4 [ RunTime:0.000700s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.004231s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9057559 ORDER BY `minOrder` ASC [ RunTime:0.000314s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.000789s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9057559 ORDER BY `unit` DESC [ RunTime:0.000241s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.000769s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9057559 LIMIT 2 [ RunTime:0.000231s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9057559 ORDER BY `minOrder` ASC [ RunTime:0.001797s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5264495 LIMIT 4 [ RunTime:0.000444s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5264495 ORDER BY `minOrder` ASC [ RunTime:0.003293s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5264495 ORDER BY `unit` DESC [ RunTime:0.000463s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5264495 LIMIT 2 [ RunTime:0.000222s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5264495 ORDER BY `minOrder` ASC [ RunTime:0.000149s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5264568 LIMIT 4 [ RunTime:0.000403s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5264568 ORDER BY `minOrder` ASC [ RunTime:0.000652s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5264568 ORDER BY `unit` DESC [ RunTime:0.002949s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5264568 LIMIT 2 [ RunTime:0.000223s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5264568 ORDER BY `minOrder` ASC [ RunTime:0.000942s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9057560 LIMIT 4 [ RunTime:0.000240s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9057560 ORDER BY `minOrder` ASC [ RunTime:0.003657s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9057560 ORDER BY `unit` DESC [ RunTime:0.001833s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9057560 LIMIT 2 [ RunTime:0.001241s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9057560 ORDER BY `minOrder` ASC [ RunTime:0.000192s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 387 LIMIT 4 [ RunTime:0.000178s ]
SELECT * FROM `stock_price` WHERE `stockid` = 387 ORDER BY `minOrder` ASC [ RunTime:0.000172s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 387 ORDER BY `unit` DESC [ RunTime:0.000180s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 387 LIMIT 2 [ RunTime:0.000177s ]
SELECT * FROM `stock_price` WHERE `stockid` = 387 ORDER BY `minOrder` ASC [ RunTime:0.000174s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001026s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ULN2803A' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.000173s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 30775 LIMIT 4 [ RunTime:0.001098s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30775 ORDER BY `minOrder` ASC [ RunTime:0.001200s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 30775 ORDER BY `unit` DESC [ RunTime:0.000251s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 30775 LIMIT 2 [ RunTime:0.000254s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30775 ORDER BY `minOrder` ASC [ RunTime:0.000149s ]
select * from pdf where partno='ULN2803AG' and brandshort='LANKE' limit 1 [ RunTime:0.014030s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ULN2803AG' OR `brand` LIKE 'LANKE(兰科)%' ) ) LIMIT 1 [ RunTime:0.001574s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9155544 LIMIT 4 [ RunTime:0.004571s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9155544 ORDER BY `minOrder` ASC [ RunTime:0.003811s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9155544 ORDER BY `unit` DESC [ RunTime:0.000618s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9155544 LIMIT 2 [ RunTime:0.000398s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9155544 ORDER BY `minOrder` ASC [ RunTime:0.000298s ]
select * from pdf where partno='ULN2803A-EV' and brandshort='EVVO' limit 1 [ RunTime:0.000688s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9059838 LIMIT 4 [ RunTime:0.001118s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9059838 ORDER BY `minOrder` ASC [ RunTime:0.001100s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9059838 ORDER BY `unit` DESC [ RunTime:0.004247s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9059838 LIMIT 2 [ RunTime:0.006834s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9059838 ORDER BY `minOrder` ASC [ RunTime:0.008122s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9059262 LIMIT 4 [ RunTime:0.002741s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9059262 ORDER BY `minOrder` ASC [ RunTime:0.000818s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9059262 ORDER BY `unit` DESC [ RunTime:0.000402s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9059262 LIMIT 2 [ RunTime:0.000401s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9059262 ORDER BY `minOrder` ASC [ RunTime:0.002927s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9058378 LIMIT 4 [ RunTime:0.003053s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9058378 ORDER BY `minOrder` ASC [ RunTime:0.000443s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9058378 ORDER BY `unit` DESC [ RunTime:0.005482s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9058378 LIMIT 2 [ RunTime:0.004846s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9058378 ORDER BY `minOrder` ASC [ RunTime:0.000333s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9058377 LIMIT 4 [ RunTime:0.001544s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9058377 ORDER BY `minOrder` ASC [ RunTime:0.000464s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9058377 ORDER BY `unit` DESC [ RunTime:0.005945s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9058377 LIMIT 2 [ RunTime:0.004289s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9058377 ORDER BY `minOrder` ASC [ RunTime:0.000390s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6007931 LIMIT 4 [ RunTime:0.002752s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007931 ORDER BY `minOrder` ASC [ RunTime:0.001617s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6007931 ORDER BY `unit` DESC [ RunTime:0.001182s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6007931 LIMIT 2 [ RunTime:0.001410s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007931 ORDER BY `minOrder` ASC [ RunTime:0.000452s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6007848 LIMIT 4 [ RunTime:0.001047s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007848 ORDER BY `minOrder` ASC [ RunTime:0.000605s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6007848 ORDER BY `unit` DESC [ RunTime:0.000533s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6007848 LIMIT 2 [ RunTime:0.006693s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007848 ORDER BY `minOrder` ASC [ RunTime:0.003336s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6007519 LIMIT 4 [ RunTime:0.004093s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007519 ORDER BY `minOrder` ASC [ RunTime:0.000725s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6007519 ORDER BY `unit` DESC [ RunTime:0.000623s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6007519 LIMIT 2 [ RunTime:0.004230s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007519 ORDER BY `minOrder` ASC [ RunTime:0.006936s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6007308 LIMIT 4 [ RunTime:0.003087s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007308 ORDER BY `minOrder` ASC [ RunTime:0.002259s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6007308 ORDER BY `unit` DESC [ RunTime:0.001917s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6007308 LIMIT 2 [ RunTime:0.001255s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007308 ORDER BY `minOrder` ASC [ RunTime:0.000359s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4624554 LIMIT 4 [ RunTime:0.000996s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4624554 ORDER BY `minOrder` ASC [ RunTime:0.000584s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4624554 ORDER BY `unit` DESC [ RunTime:0.004734s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4624554 LIMIT 2 [ RunTime:0.006040s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4624554 ORDER BY `minOrder` ASC [ RunTime:0.000407s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'ULN2803A%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.001752s ]