SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001116s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000404s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001133s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.222' ) [ RunTime:0.000231s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.000851s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000194s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000215s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000151s ]
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.000274s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001438s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `partno` LIKE '1N5819%' AND `status` <> 2 ) AND `u`.`lockUser` = '0' [ RunTime:0.000298s ]
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.000741s ]
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.003486s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001051s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6211 LIMIT 4 [ RunTime:0.000307s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.000792s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6211 ORDER BY `minOrder` ASC [ RunTime:0.000295s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.000848s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6211 ORDER BY `unit` DESC [ RunTime:0.000341s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.000777s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6211 LIMIT 2 [ RunTime:0.000254s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6211 ORDER BY `minOrder` ASC [ RunTime:0.000160s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001095s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1N5819HW-7-F' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.001125s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 14738 LIMIT 4 [ RunTime:0.000300s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14738 ORDER BY `minOrder` ASC [ RunTime:0.001398s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 14738 ORDER BY `unit` DESC [ RunTime:0.000684s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 14738 LIMIT 2 [ RunTime:0.000389s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14738 ORDER BY `minOrder` ASC [ RunTime:0.000189s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1N5819' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.000734s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 30724 LIMIT 4 [ RunTime:0.000733s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30724 ORDER BY `minOrder` ASC [ RunTime:0.001491s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 30724 ORDER BY `unit` DESC [ RunTime:0.000295s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 30724 LIMIT 2 [ RunTime:0.000319s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30724 ORDER BY `minOrder` ASC [ RunTime:0.000156s ]
select * from pdf where partno='1N5819' and brandshort='ST' limit 1 [ RunTime:0.005951s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1N5819' OR `brand` LIKE 'ST(意法半导体)%' ) ) LIMIT 1 [ RunTime:0.007271s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 28053 LIMIT 4 [ RunTime:0.000384s ]
SELECT * FROM `stock_price` WHERE `stockid` = 28053 ORDER BY `minOrder` ASC [ RunTime:0.000518s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 28053 ORDER BY `unit` DESC [ RunTime:0.000497s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 28053 LIMIT 2 [ RunTime:0.000334s ]
SELECT * FROM `stock_price` WHERE `stockid` = 28053 ORDER BY `minOrder` ASC [ RunTime:0.000246s ]
select * from pdf where partno='1N5819HW-7-F' and brandshort='DIODES0.08 23+0.0915 23+' limit 1 [ RunTime:0.000952s ]
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.001095s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 18663 LIMIT 4 [ RunTime:0.000503s ]
SELECT * FROM `stock_price` WHERE `stockid` = 18663 ORDER BY `minOrder` ASC [ RunTime:0.000505s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 18663 ORDER BY `unit` DESC [ RunTime:0.000334s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 18663 LIMIT 2 [ RunTime:0.000360s ]
SELECT * FROM `stock_price` WHERE `stockid` = 18663 ORDER BY `minOrder` ASC [ RunTime:0.000246s ]
select * from pdf where partno='1N5819HW-7-F' and brandshort='DIODES0.08 23+0.0915 23+' limit 1 [ RunTime:0.000457s ]
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.000259s ]
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.000292s ]