SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002897s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000679s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002822s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.186' ) [ RunTime:0.001402s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002107s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000340s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000408s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000272s ]
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.000476s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002125s ]
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 'MCP1700T-3302E/MB%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.001775s ]
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 ('4626407','17142','16124','1979','9085452') ORDER BY FIELD(s.id, 4626407,17142,16124,1979,9085452) [ RunTime:0.007227s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001626s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4626407 LIMIT 4 [ RunTime:0.005670s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001312s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4626407 ORDER BY `minOrder` ASC [ RunTime:0.002460s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001028s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4626407 ORDER BY `unit` DESC [ RunTime:0.001869s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001185s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4626407 LIMIT 2 [ RunTime:0.001403s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4626407 ORDER BY `minOrder` ASC [ RunTime:0.000200s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 17142 LIMIT 4 [ RunTime:0.000274s ]
SELECT * FROM `stock_price` WHERE `stockid` = 17142 ORDER BY `minOrder` ASC [ RunTime:0.000299s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 17142 ORDER BY `unit` DESC [ RunTime:0.000290s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 17142 LIMIT 2 [ RunTime:0.000275s ]
SELECT * FROM `stock_price` WHERE `stockid` = 17142 ORDER BY `minOrder` ASC [ RunTime:0.005525s ]
select * from pdf where partno='MCP1700T-3302E/MB' and brandshort='MICROCHIP' limit 1 [ RunTime:0.007948s ]
select foldpath,foldpath2,filename from pdf_file where id=1993739 limit 1 [ RunTime:0.002130s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002765s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MCP1700T-3302E/MB' OR `brand` LIKE 'MICROCHIP%' ) ) LIMIT 1 [ RunTime:0.028139s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16124 LIMIT 4 [ RunTime:0.003058s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16124 ORDER BY `minOrder` ASC [ RunTime:0.009326s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16124 ORDER BY `unit` DESC [ RunTime:0.005541s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16124 LIMIT 2 [ RunTime:0.000494s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16124 ORDER BY `minOrder` ASC [ RunTime:0.001940s ]
select * from pdf where partno='MCP1700T-3302E/MB' and brandshort='MICROCHIP' limit 1 [ RunTime:0.001449s ]
select foldpath,foldpath2,filename from pdf_file where id=1993739 limit 1 [ RunTime:0.000358s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MCP1700T-3302E/MB' OR `brand` LIKE 'MICROCHIP%' ) ) LIMIT 1 [ RunTime:0.000439s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1979 LIMIT 4 [ RunTime:0.003249s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1979 ORDER BY `minOrder` ASC [ RunTime:0.003527s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1979 ORDER BY `unit` DESC [ RunTime:0.002997s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1979 LIMIT 2 [ RunTime:0.000613s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1979 ORDER BY `minOrder` ASC [ RunTime:0.000319s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MCP1700T-3302E/MB' OR `brand` LIKE 'MICROCHIP%' ) ) LIMIT 1 [ RunTime:0.000322s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9085452 LIMIT 4 [ RunTime:0.000778s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9085452 ORDER BY `minOrder` ASC [ RunTime:0.002134s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9085452 ORDER BY `unit` DESC [ RunTime:0.005946s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9085452 LIMIT 2 [ RunTime:0.004955s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9085452 ORDER BY `minOrder` ASC [ RunTime:0.001802s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'MCP1700T-3302E/MB%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.002530s ]