SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001934s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000485s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002004s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.186' ) [ RunTime:0.000300s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002197s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000277s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000303s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000225s ]
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.000429s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002071s ]
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.001346s ]
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.006129s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001531s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9057559 LIMIT 4 [ RunTime:0.000656s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.000839s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9057559 ORDER BY `minOrder` ASC [ RunTime:0.002199s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.002393s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9057559 ORDER BY `unit` DESC [ RunTime:0.000337s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.004501s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9057559 LIMIT 2 [ RunTime:0.001634s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9057559 ORDER BY `minOrder` ASC [ RunTime:0.003675s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5264495 LIMIT 4 [ RunTime:0.002363s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5264495 ORDER BY `minOrder` ASC [ RunTime:0.004354s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5264495 ORDER BY `unit` DESC [ RunTime:0.000261s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5264495 LIMIT 2 [ RunTime:0.001652s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5264495 ORDER BY `minOrder` ASC [ RunTime:0.000163s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5264568 LIMIT 4 [ RunTime:0.001525s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5264568 ORDER BY `minOrder` ASC [ RunTime:0.000927s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5264568 ORDER BY `unit` DESC [ RunTime:0.000686s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5264568 LIMIT 2 [ RunTime:0.000653s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5264568 ORDER BY `minOrder` ASC [ RunTime:0.000151s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9057560 LIMIT 4 [ RunTime:0.000232s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9057560 ORDER BY `minOrder` ASC [ RunTime:0.000221s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9057560 ORDER BY `unit` DESC [ RunTime:0.000656s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9057560 LIMIT 2 [ RunTime:0.001343s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9057560 ORDER BY `minOrder` ASC [ RunTime:0.000927s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 387 LIMIT 4 [ RunTime:0.000224s ]
SELECT * FROM `stock_price` WHERE `stockid` = 387 ORDER BY `minOrder` ASC [ RunTime:0.000637s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 387 ORDER BY `unit` DESC [ RunTime:0.000378s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 387 LIMIT 2 [ RunTime:0.003070s ]
SELECT * FROM `stock_price` WHERE `stockid` = 387 ORDER BY `minOrder` ASC [ RunTime:0.001646s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001122s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ULN2803A' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.010651s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 30775 LIMIT 4 [ RunTime:0.000661s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30775 ORDER BY `minOrder` ASC [ RunTime:0.001719s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 30775 ORDER BY `unit` DESC [ RunTime:0.001656s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 30775 LIMIT 2 [ RunTime:0.000803s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30775 ORDER BY `minOrder` ASC [ RunTime:0.000162s ]
select * from pdf where partno='ULN2803AG' and brandshort='LANKE' limit 1 [ RunTime:0.001550s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ULN2803AG' OR `brand` LIKE 'LANKE(兰科)%' ) ) LIMIT 1 [ RunTime:0.001212s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9155544 LIMIT 4 [ RunTime:0.003920s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9155544 ORDER BY `minOrder` ASC [ RunTime:0.000636s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9155544 ORDER BY `unit` DESC [ RunTime:0.000391s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9155544 LIMIT 2 [ RunTime:0.000980s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9155544 ORDER BY `minOrder` ASC [ RunTime:0.003105s ]
select * from pdf where partno='ULN2803A-EV' and brandshort='EVVO' limit 1 [ RunTime:0.008024s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9059838 LIMIT 4 [ RunTime:0.001090s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9059838 ORDER BY `minOrder` ASC [ RunTime:0.000872s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9059838 ORDER BY `unit` DESC [ RunTime:0.001240s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9059838 LIMIT 2 [ RunTime:0.002938s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9059838 ORDER BY `minOrder` ASC [ RunTime:0.000244s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9059262 LIMIT 4 [ RunTime:0.000596s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9059262 ORDER BY `minOrder` ASC [ RunTime:0.002650s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9059262 ORDER BY `unit` DESC [ RunTime:0.000478s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9059262 LIMIT 2 [ RunTime:0.000371s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9059262 ORDER BY `minOrder` ASC [ RunTime:0.000233s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9058378 LIMIT 4 [ RunTime:0.000593s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9058378 ORDER BY `minOrder` ASC [ RunTime:0.002517s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9058378 ORDER BY `unit` DESC [ RunTime:0.000398s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9058378 LIMIT 2 [ RunTime:0.000373s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9058378 ORDER BY `minOrder` ASC [ RunTime:0.000232s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9058377 LIMIT 4 [ RunTime:0.000379s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9058377 ORDER BY `minOrder` ASC [ RunTime:0.001576s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9058377 ORDER BY `unit` DESC [ RunTime:0.008024s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9058377 LIMIT 2 [ RunTime:0.001773s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9058377 ORDER BY `minOrder` ASC [ RunTime:0.002543s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6007931 LIMIT 4 [ RunTime:0.000771s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007931 ORDER BY `minOrder` ASC [ RunTime:0.000416s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6007931 ORDER BY `unit` DESC [ RunTime:0.003119s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6007931 LIMIT 2 [ RunTime:0.003822s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007931 ORDER BY `minOrder` ASC [ RunTime:0.000248s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6007848 LIMIT 4 [ RunTime:0.000680s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007848 ORDER BY `minOrder` ASC [ RunTime:0.002378s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6007848 ORDER BY `unit` DESC [ RunTime:0.000423s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6007848 LIMIT 2 [ RunTime:0.000366s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007848 ORDER BY `minOrder` ASC [ RunTime:0.001749s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6007519 LIMIT 4 [ RunTime:0.000569s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007519 ORDER BY `minOrder` ASC [ RunTime:0.004387s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6007519 ORDER BY `unit` DESC [ RunTime:0.002538s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6007519 LIMIT 2 [ RunTime:0.002359s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007519 ORDER BY `minOrder` ASC [ RunTime:0.000243s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6007308 LIMIT 4 [ RunTime:0.000593s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007308 ORDER BY `minOrder` ASC [ RunTime:0.000407s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6007308 ORDER BY `unit` DESC [ RunTime:0.000396s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6007308 LIMIT 2 [ RunTime:0.007646s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007308 ORDER BY `minOrder` ASC [ RunTime:0.001775s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4624554 LIMIT 4 [ RunTime:0.001265s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4624554 ORDER BY `minOrder` ASC [ RunTime:0.001306s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4624554 ORDER BY `unit` DESC [ RunTime:0.000612s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4624554 LIMIT 2 [ RunTime:0.001029s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4624554 ORDER BY `minOrder` ASC [ RunTime:0.000779s ]
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.002135s ]