SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001166s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000545s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001625s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.186' ) [ RunTime:0.000303s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001148s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000247s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.001915s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000230s ]
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.000392s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002305s ]
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.006573s ]
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.009543s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002259s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9057559 LIMIT 4 [ RunTime:0.005442s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.003364s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9057559 ORDER BY `minOrder` ASC [ RunTime:0.002626s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.002579s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9057559 ORDER BY `unit` DESC [ RunTime:0.004934s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002087s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9057559 LIMIT 2 [ RunTime:0.015597s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9057559 ORDER BY `minOrder` ASC [ RunTime:0.005263s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5264495 LIMIT 4 [ RunTime:0.015233s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5264495 ORDER BY `minOrder` ASC [ RunTime:0.003874s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5264495 ORDER BY `unit` DESC [ RunTime:0.004398s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5264495 LIMIT 2 [ RunTime:0.008326s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5264495 ORDER BY `minOrder` ASC [ RunTime:0.000255s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5264568 LIMIT 4 [ RunTime:0.000429s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5264568 ORDER BY `minOrder` ASC [ RunTime:0.000311s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5264568 ORDER BY `unit` DESC [ RunTime:0.004258s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5264568 LIMIT 2 [ RunTime:0.013150s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5264568 ORDER BY `minOrder` ASC [ RunTime:0.009828s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9057560 LIMIT 4 [ RunTime:0.010330s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9057560 ORDER BY `minOrder` ASC [ RunTime:0.014883s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9057560 ORDER BY `unit` DESC [ RunTime:0.002026s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9057560 LIMIT 2 [ RunTime:0.001580s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9057560 ORDER BY `minOrder` ASC [ RunTime:0.001261s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 387 LIMIT 4 [ RunTime:0.000493s ]
SELECT * FROM `stock_price` WHERE `stockid` = 387 ORDER BY `minOrder` ASC [ RunTime:0.004595s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 387 ORDER BY `unit` DESC [ RunTime:0.000398s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 387 LIMIT 2 [ RunTime:0.000817s ]
SELECT * FROM `stock_price` WHERE `stockid` = 387 ORDER BY `minOrder` ASC [ RunTime:0.001920s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001647s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ULN2803A' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.002460s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 30775 LIMIT 4 [ RunTime:0.000617s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30775 ORDER BY `minOrder` ASC [ RunTime:0.000495s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 30775 ORDER BY `unit` DESC [ RunTime:0.000436s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 30775 LIMIT 2 [ RunTime:0.001797s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30775 ORDER BY `minOrder` ASC [ RunTime:0.004071s ]
select * from pdf where partno='ULN2803AG' and brandshort='LANKE' limit 1 [ RunTime:0.004316s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ULN2803AG' OR `brand` LIKE 'LANKE(兰科)%' ) ) LIMIT 1 [ RunTime:0.002163s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9155544 LIMIT 4 [ RunTime:0.000717s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9155544 ORDER BY `minOrder` ASC [ RunTime:0.001561s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9155544 ORDER BY `unit` DESC [ RunTime:0.000431s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9155544 LIMIT 2 [ RunTime:0.005942s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9155544 ORDER BY `minOrder` ASC [ RunTime:0.003336s ]
select * from pdf where partno='ULN2803A-EV' and brandshort='EVVO' limit 1 [ RunTime:0.001490s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9059838 LIMIT 4 [ RunTime:0.000980s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9059838 ORDER BY `minOrder` ASC [ RunTime:0.006683s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9059838 ORDER BY `unit` DESC [ RunTime:0.009225s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9059838 LIMIT 2 [ RunTime:0.000463s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9059838 ORDER BY `minOrder` ASC [ RunTime:0.000291s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9059262 LIMIT 4 [ RunTime:0.003900s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9059262 ORDER BY `minOrder` ASC [ RunTime:0.002661s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9059262 ORDER BY `unit` DESC [ RunTime:0.007992s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9059262 LIMIT 2 [ RunTime:0.013297s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9059262 ORDER BY `minOrder` ASC [ RunTime:0.003084s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9058378 LIMIT 4 [ RunTime:0.003522s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9058378 ORDER BY `minOrder` ASC [ RunTime:0.001430s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9058378 ORDER BY `unit` DESC [ RunTime:0.002624s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9058378 LIMIT 2 [ RunTime:0.009403s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9058378 ORDER BY `minOrder` ASC [ RunTime:0.002909s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9058377 LIMIT 4 [ RunTime:0.003200s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9058377 ORDER BY `minOrder` ASC [ RunTime:0.001970s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9058377 ORDER BY `unit` DESC [ RunTime:0.005524s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9058377 LIMIT 2 [ RunTime:0.007375s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9058377 ORDER BY `minOrder` ASC [ RunTime:0.000258s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6007931 LIMIT 4 [ RunTime:0.001287s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007931 ORDER BY `minOrder` ASC [ RunTime:0.002168s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6007931 ORDER BY `unit` DESC [ RunTime:0.000515s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6007931 LIMIT 2 [ RunTime:0.000379s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007931 ORDER BY `minOrder` ASC [ RunTime:0.002380s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6007848 LIMIT 4 [ RunTime:0.003029s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007848 ORDER BY `minOrder` ASC [ RunTime:0.021604s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6007848 ORDER BY `unit` DESC [ RunTime:0.003484s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6007848 LIMIT 2 [ RunTime:0.000406s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007848 ORDER BY `minOrder` ASC [ RunTime:0.004578s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6007519 LIMIT 4 [ RunTime:0.002910s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007519 ORDER BY `minOrder` ASC [ RunTime:0.000416s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6007519 ORDER BY `unit` DESC [ RunTime:0.000457s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6007519 LIMIT 2 [ RunTime:0.016532s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007519 ORDER BY `minOrder` ASC [ RunTime:0.007079s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6007308 LIMIT 4 [ RunTime:0.004552s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007308 ORDER BY `minOrder` ASC [ RunTime:0.010440s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6007308 ORDER BY `unit` DESC [ RunTime:0.012124s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6007308 LIMIT 2 [ RunTime:0.001020s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6007308 ORDER BY `minOrder` ASC [ RunTime:0.000277s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4624554 LIMIT 4 [ RunTime:0.006064s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4624554 ORDER BY `minOrder` ASC [ RunTime:0.003811s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4624554 ORDER BY `unit` DESC [ RunTime:0.001154s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4624554 LIMIT 2 [ RunTime:0.000418s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4624554 ORDER BY `minOrder` ASC [ RunTime:0.004072s ]
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.002870s ]