SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001992s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000528s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002069s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.37' ) [ RunTime:0.000344s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001796s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.003265s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000277s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000169s ]
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.000310s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001176s ]
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 '1N5819%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.001718s ]
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 ('6211','14738','30724','28053','18663') ORDER BY FIELD(s.id, 6211,14738,30724,28053,18663) [ RunTime:0.001534s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001179s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6211 LIMIT 4 [ RunTime:0.000326s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001087s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6211 ORDER BY `minOrder` ASC [ RunTime:0.002777s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001264s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6211 ORDER BY `unit` DESC [ RunTime:0.000350s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001013s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6211 LIMIT 2 [ RunTime:0.000403s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6211 ORDER BY `minOrder` ASC [ RunTime:0.000204s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001105s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1N5819HW-7-F' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.000872s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 14738 LIMIT 4 [ RunTime:0.000217s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14738 ORDER BY `minOrder` ASC [ RunTime:0.000190s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 14738 ORDER BY `unit` DESC [ RunTime:0.000197s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 14738 LIMIT 2 [ RunTime:0.000184s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14738 ORDER BY `minOrder` ASC [ RunTime:0.000185s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1N5819' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.000210s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 30724 LIMIT 4 [ RunTime:0.000297s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30724 ORDER BY `minOrder` ASC [ RunTime:0.005454s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 30724 ORDER BY `unit` DESC [ RunTime:0.001709s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 30724 LIMIT 2 [ RunTime:0.000526s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30724 ORDER BY `minOrder` ASC [ RunTime:0.000202s ]
select * from pdf where partno='1N5819' and brandshort='ST' limit 1 [ RunTime:0.007196s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1N5819' OR `brand` LIKE 'ST(意法半导体)%' ) ) LIMIT 1 [ RunTime:0.011529s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 28053 LIMIT 4 [ RunTime:0.004412s ]
SELECT * FROM `stock_price` WHERE `stockid` = 28053 ORDER BY `minOrder` ASC [ RunTime:0.003288s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 28053 ORDER BY `unit` DESC [ RunTime:0.001401s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 28053 LIMIT 2 [ RunTime:0.000518s ]
SELECT * FROM `stock_price` WHERE `stockid` = 28053 ORDER BY `minOrder` ASC [ RunTime:0.002027s ]
select * from pdf where partno='1N5819HW-7-F' and brandshort='DIODES0.08 23+0.0915 23+' limit 1 [ RunTime:0.011332s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1N5819HW-7-F' OR `brand` LIKE 'DIODES宝利士0.08 23+凯新达0.0915含税 23+%' ) ) LIMIT 1 [ RunTime:0.001345s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 18663 LIMIT 4 [ RunTime:0.000646s ]
SELECT * FROM `stock_price` WHERE `stockid` = 18663 ORDER BY `minOrder` ASC [ RunTime:0.008257s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 18663 ORDER BY `unit` DESC [ RunTime:0.013545s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 18663 LIMIT 2 [ RunTime:0.001483s ]
SELECT * FROM `stock_price` WHERE `stockid` = 18663 ORDER BY `minOrder` ASC [ RunTime:0.002553s ]
select * from pdf where partno='1N5819HW-7-F' and brandshort='DIODES0.08 23+0.0915 23+' limit 1 [ RunTime:0.001060s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1N5819HW-7-F' OR `brand` LIKE 'DIODES宝利士0.08 23+凯新达0.0915含税 23+%' ) ) LIMIT 1 [ RunTime:0.000369s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE '1N5819%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.003427s ]