SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002266s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000510s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002386s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.222' ) [ RunTime:0.000329s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001859s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000276s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.006666s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000227s ]
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.006024s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002345s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `partno` LIKE 'L7805ABV%' AND `status` <> 2 ) AND `u`.`lockUser` = '0' [ RunTime:0.001820s ]
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 'L7805ABV%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.005226s ]
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 ('6012927','6015156','16824','15805','30199','2246') ORDER BY FIELD(s.id, 6012927,6015156,16824,15805,30199,2246) [ RunTime:0.003421s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001254s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6012927 LIMIT 4 [ RunTime:0.000953s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001091s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6012927 ORDER BY `minOrder` ASC [ RunTime:0.000448s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001071s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6012927 ORDER BY `unit` DESC [ RunTime:0.002489s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001032s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6012927 LIMIT 2 [ RunTime:0.001037s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6012927 ORDER BY `minOrder` ASC [ RunTime:0.000192s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6015156 LIMIT 4 [ RunTime:0.000555s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6015156 ORDER BY `minOrder` ASC [ RunTime:0.000304s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6015156 ORDER BY `unit` DESC [ RunTime:0.001956s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6015156 LIMIT 2 [ RunTime:0.000989s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6015156 ORDER BY `minOrder` ASC [ RunTime:0.000195s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16824 LIMIT 4 [ RunTime:0.005851s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16824 ORDER BY `minOrder` ASC [ RunTime:0.012141s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16824 ORDER BY `unit` DESC [ RunTime:0.003080s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16824 LIMIT 2 [ RunTime:0.009168s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16824 ORDER BY `minOrder` ASC [ RunTime:0.003737s ]
select * from pdf where partno='L7805ABV' and brandshort='STMICROELECTRONICS' limit 1 [ RunTime:0.003100s ]
select foldpath,foldpath2,filename from pdf_file where id=265766 limit 1 [ RunTime:0.000643s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001634s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'L7805ABV' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.000911s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15805 LIMIT 4 [ RunTime:0.003151s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15805 ORDER BY `minOrder` ASC [ RunTime:0.003708s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15805 ORDER BY `unit` DESC [ RunTime:0.002391s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15805 LIMIT 2 [ RunTime:0.000546s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15805 ORDER BY `minOrder` ASC [ RunTime:0.000181s ]
select * from pdf where partno='L7805ABV' and brandshort='STMICROELECTRONICS' limit 1 [ RunTime:0.000257s ]
select foldpath,foldpath2,filename from pdf_file where id=265766 limit 1 [ RunTime:0.000157s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'L7805ABV' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.000228s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 30199 LIMIT 4 [ RunTime:0.000287s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30199 ORDER BY `minOrder` ASC [ RunTime:0.000524s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 30199 ORDER BY `unit` DESC [ RunTime:0.000360s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 30199 LIMIT 2 [ RunTime:0.003462s ]
SELECT * FROM `stock_price` WHERE `stockid` = 30199 ORDER BY `minOrder` ASC [ RunTime:0.003964s ]
select * from pdf where partno='L7805ABV-DG' and brandshort='ST' limit 1 [ RunTime:0.002433s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'L7805ABV-DG' OR `brand` LIKE 'ST%' ) ) LIMIT 1 [ RunTime:0.012042s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2246 LIMIT 4 [ RunTime:0.000400s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2246 ORDER BY `minOrder` ASC [ RunTime:0.001694s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2246 ORDER BY `unit` DESC [ RunTime:0.002740s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2246 LIMIT 2 [ RunTime:0.000239s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2246 ORDER BY `minOrder` ASC [ RunTime:0.000267s ]
select * from pdf where partno='L7805ABV' and brandshort='STMICROELECTRONICS' limit 1 [ RunTime:0.000506s ]
select foldpath,foldpath2,filename from pdf_file where id=265766 limit 1 [ RunTime:0.000286s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'L7805ABV' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.000378s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'L7805ABV%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.000547s ]