SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001455s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000427s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001488s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.37' ) [ RunTime:0.000299s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.000911s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000231s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000502s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000187s ]
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.000408s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001050s ]
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.003778s ]
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.003445s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002509s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6211 LIMIT 4 [ RunTime:0.000621s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002021s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6211 ORDER BY `minOrder` ASC [ RunTime:0.001251s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001375s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6211 ORDER BY `unit` DESC [ RunTime:0.000354s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001248s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6211 LIMIT 2 [ RunTime:0.002600s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6211 ORDER BY `minOrder` ASC [ RunTime:0.000241s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001039s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1N5819HW-7-F' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.001310s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 14738 LIMIT 4 [ RunTime:0.002914s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14738 ORDER BY `minOrder` ASC [ RunTime:0.001347s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 14738 ORDER BY `unit` DESC [ RunTime:0.000643s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 14738 LIMIT 2 [ RunTime:0.002423s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14738 ORDER BY `minOrder` ASC [ RunTime:0.002465s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1N5819' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.009127s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 30724 LIMIT 4 [ RunTime:0.008941s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30724 ORDER BY `minOrder` ASC [ RunTime:0.002383s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 30724 ORDER BY `unit` DESC [ RunTime:0.010660s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 30724 LIMIT 2 [ RunTime:0.013419s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30724 ORDER BY `minOrder` ASC [ RunTime:0.000457s ]
select * from pdf where partno='1N5819' and brandshort='ST' limit 1 [ RunTime:0.004876s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1N5819' OR `brand` LIKE 'ST(意法半导体)%' ) ) LIMIT 1 [ RunTime:0.007202s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 28053 LIMIT 4 [ RunTime:0.001402s ]
SELECT * FROM `stock_price` WHERE `stockid` = 28053 ORDER BY `minOrder` ASC [ RunTime:0.002534s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 28053 ORDER BY `unit` DESC [ RunTime:0.008621s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 28053 LIMIT 2 [ RunTime:0.007765s ]
SELECT * FROM `stock_price` WHERE `stockid` = 28053 ORDER BY `minOrder` ASC [ RunTime:0.000328s ]
select * from pdf where partno='1N5819HW-7-F' and brandshort='DIODES0.08 23+0.0915 23+' limit 1 [ RunTime:0.002426s ]
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.000886s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 18663 LIMIT 4 [ RunTime:0.004629s ]
SELECT * FROM `stock_price` WHERE `stockid` = 18663 ORDER BY `minOrder` ASC [ RunTime:0.003340s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 18663 ORDER BY `unit` DESC [ RunTime:0.004069s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 18663 LIMIT 2 [ RunTime:0.011791s ]
SELECT * FROM `stock_price` WHERE `stockid` = 18663 ORDER BY `minOrder` ASC [ RunTime:0.002896s ]
select * from pdf where partno='1N5819HW-7-F' and brandshort='DIODES0.08 23+0.0915 23+' limit 1 [ RunTime:0.000603s ]
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.000492s ]
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.000569s ]