SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001258s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000448s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001779s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.186' ) [ RunTime:0.000272s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001058s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000223s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000892s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000183s ]
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.000328s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001492s ]
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 'H11D1%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.003703s ]
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 ('8658884','8657548','8658739','5171558','6958898','5171070','4575677','8657007','8658231','8658639','8658636','8658247','4575878','4575807','3435','8662663','8662662','8661043','8661041','8660946') ORDER BY FIELD(s.id, 8658884,8657548,8658739,5171558,6958898,5171070,4575677,8657007,8658231,8658639,8658636,8658247,4575878,4575807,3435,8662663,8662662,8661043,8661041,8660946) [ RunTime:0.003364s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001136s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658884 LIMIT 4 [ RunTime:0.000631s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001094s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658884 ORDER BY `minOrder` ASC [ RunTime:0.001819s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.000984s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658884 ORDER BY `unit` DESC [ RunTime:0.002443s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.000934s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658884 LIMIT 2 [ RunTime:0.000315s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658884 ORDER BY `minOrder` ASC [ RunTime:0.000159s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8657548 LIMIT 4 [ RunTime:0.000399s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8657548 ORDER BY `minOrder` ASC [ RunTime:0.000226s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8657548 ORDER BY `unit` DESC [ RunTime:0.005689s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8657548 LIMIT 2 [ RunTime:0.001378s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8657548 ORDER BY `minOrder` ASC [ RunTime:0.000157s ]
select * from pdf where partno='H11D1-X009' and brandshort='Vishay Semiconductor Opto Division' limit 1 [ RunTime:0.002483s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658739 LIMIT 4 [ RunTime:0.007816s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658739 ORDER BY `minOrder` ASC [ RunTime:0.005190s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658739 ORDER BY `unit` DESC [ RunTime:0.000567s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658739 LIMIT 2 [ RunTime:0.000544s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658739 ORDER BY `minOrder` ASC [ RunTime:0.000354s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5171558 LIMIT 4 [ RunTime:0.000763s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5171558 ORDER BY `minOrder` ASC [ RunTime:0.003056s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5171558 ORDER BY `unit` DESC [ RunTime:0.001745s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5171558 LIMIT 2 [ RunTime:0.000517s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5171558 ORDER BY `minOrder` ASC [ RunTime:0.000371s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6958898 LIMIT 4 [ RunTime:0.000838s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6958898 ORDER BY `minOrder` ASC [ RunTime:0.000769s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6958898 ORDER BY `unit` DESC [ RunTime:0.001609s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6958898 LIMIT 2 [ RunTime:0.011075s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6958898 ORDER BY `minOrder` ASC [ RunTime:0.004847s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5171070 LIMIT 4 [ RunTime:0.002150s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5171070 ORDER BY `minOrder` ASC [ RunTime:0.000387s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5171070 ORDER BY `unit` DESC [ RunTime:0.000337s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5171070 LIMIT 2 [ RunTime:0.000318s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5171070 ORDER BY `minOrder` ASC [ RunTime:0.000241s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4575677 LIMIT 4 [ RunTime:0.000627s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4575677 ORDER BY `minOrder` ASC [ RunTime:0.005737s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4575677 ORDER BY `unit` DESC [ RunTime:0.001401s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4575677 LIMIT 2 [ RunTime:0.001213s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4575677 ORDER BY `minOrder` ASC [ RunTime:0.000258s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8657007 LIMIT 4 [ RunTime:0.001088s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8657007 ORDER BY `minOrder` ASC [ RunTime:0.000327s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8657007 ORDER BY `unit` DESC [ RunTime:0.000321s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8657007 LIMIT 2 [ RunTime:0.000306s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8657007 ORDER BY `minOrder` ASC [ RunTime:0.001876s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658231 LIMIT 4 [ RunTime:0.000461s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658231 ORDER BY `minOrder` ASC [ RunTime:0.002837s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658231 ORDER BY `unit` DESC [ RunTime:0.000355s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658231 LIMIT 2 [ RunTime:0.001323s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658231 ORDER BY `minOrder` ASC [ RunTime:0.001007s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658639 LIMIT 4 [ RunTime:0.000581s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658639 ORDER BY `minOrder` ASC [ RunTime:0.000386s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658639 ORDER BY `unit` DESC [ RunTime:0.006070s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658639 LIMIT 2 [ RunTime:0.001701s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658639 ORDER BY `minOrder` ASC [ RunTime:0.000292s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658636 LIMIT 4 [ RunTime:0.001574s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658636 ORDER BY `minOrder` ASC [ RunTime:0.000446s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658636 ORDER BY `unit` DESC [ RunTime:0.000341s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658636 LIMIT 2 [ RunTime:0.000315s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658636 ORDER BY `minOrder` ASC [ RunTime:0.002225s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658247 LIMIT 4 [ RunTime:0.000510s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658247 ORDER BY `minOrder` ASC [ RunTime:0.003008s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658247 ORDER BY `unit` DESC [ RunTime:0.001197s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658247 LIMIT 2 [ RunTime:0.007409s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658247 ORDER BY `minOrder` ASC [ RunTime:0.005054s ]
select * from pdf where partno='H11D1-X009T' and brandshort='Vishay Semiconductor Opto Division' limit 1 [ RunTime:0.007696s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4575878 LIMIT 4 [ RunTime:0.001948s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4575878 ORDER BY `minOrder` ASC [ RunTime:0.002116s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4575878 ORDER BY `unit` DESC [ RunTime:0.001117s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4575878 LIMIT 2 [ RunTime:0.001035s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4575878 ORDER BY `minOrder` ASC [ RunTime:0.001428s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4575807 LIMIT 4 [ RunTime:0.000717s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4575807 ORDER BY `minOrder` ASC [ RunTime:0.000544s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4575807 ORDER BY `unit` DESC [ RunTime:0.001616s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4575807 LIMIT 2 [ RunTime:0.005060s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4575807 ORDER BY `minOrder` ASC [ RunTime:0.001692s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3435 LIMIT 4 [ RunTime:0.000532s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3435 ORDER BY `minOrder` ASC [ RunTime:0.000487s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3435 ORDER BY `unit` DESC [ RunTime:0.000963s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3435 LIMIT 2 [ RunTime:0.005021s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3435 ORDER BY `minOrder` ASC [ RunTime:0.000904s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001886s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'H11D1' OR `brand` LIKE 'ISOCOM%' ) ) LIMIT 1 [ RunTime:0.003497s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8662663 LIMIT 4 [ RunTime:0.002059s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8662663 ORDER BY `minOrder` ASC [ RunTime:0.000489s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8662663 ORDER BY `unit` DESC [ RunTime:0.000468s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8662663 LIMIT 2 [ RunTime:0.004895s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8662663 ORDER BY `minOrder` ASC [ RunTime:0.000339s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8662662 LIMIT 4 [ RunTime:0.000492s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8662662 ORDER BY `minOrder` ASC [ RunTime:0.008305s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8662662 ORDER BY `unit` DESC [ RunTime:0.001633s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8662662 LIMIT 2 [ RunTime:0.004147s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8662662 ORDER BY `minOrder` ASC [ RunTime:0.000364s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8661043 LIMIT 4 [ RunTime:0.000796s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8661043 ORDER BY `minOrder` ASC [ RunTime:0.000331s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8661043 ORDER BY `unit` DESC [ RunTime:0.000306s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8661043 LIMIT 2 [ RunTime:0.000307s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8661043 ORDER BY `minOrder` ASC [ RunTime:0.000301s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8661041 LIMIT 4 [ RunTime:0.000453s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8661041 ORDER BY `minOrder` ASC [ RunTime:0.007583s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8661041 ORDER BY `unit` DESC [ RunTime:0.004154s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8661041 LIMIT 2 [ RunTime:0.003140s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8661041 ORDER BY `minOrder` ASC [ RunTime:0.000458s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8660946 LIMIT 4 [ RunTime:0.001087s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660946 ORDER BY `minOrder` ASC [ RunTime:0.001807s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8660946 ORDER BY `unit` DESC [ RunTime:0.002823s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8660946 LIMIT 2 [ RunTime:0.000506s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660946 ORDER BY `minOrder` ASC [ RunTime:0.001558s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'H11D1%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.002392s ]