SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001240s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000643s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.003086s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.165' ) [ RunTime:0.000444s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002203s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000374s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 33 LIMIT 1 [ RunTime:0.000649s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 33 [ RunTime:0.000272s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` IN (341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356) [ RunTime:0.000344s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002428s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `status` <> 2 AND `categoryid` IN (341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356) ) AND `u`.`lockUser` = '0' [ RunTime:0.002191s ]
SELECT `s`.`id` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay = 1) ) AND ( `status` <> 2 AND `categoryid` IN (341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356) ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.002397s ]
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 = 1) ) AND `s`.`id` IN ('5311','7852','176','4079','11496','2122','2261','16892','15873','2420','7470','6817','12781','13572','8340','11827') ORDER BY FIELD(s.id, 5311,7852,176,4079,11496,2122,2261,16892,15873,2420,7470,6817,12781,13572,8340,11827) [ RunTime:0.003575s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001175s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5311 LIMIT 4 [ RunTime:0.001554s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001062s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5311 ORDER BY `minOrder` ASC [ RunTime:0.000615s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001177s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5311 ORDER BY `unit` DESC [ RunTime:0.000465s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.000935s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5311 LIMIT 2 [ RunTime:0.008704s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5311 ORDER BY `minOrder` ASC [ RunTime:0.000504s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001111s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TEFD4300' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.007033s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 7852 LIMIT 4 [ RunTime:0.002500s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7852 ORDER BY `minOrder` ASC [ RunTime:0.003013s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 7852 ORDER BY `unit` DESC [ RunTime:0.002178s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 7852 LIMIT 2 [ RunTime:0.002454s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7852 ORDER BY `minOrder` ASC [ RunTime:0.001313s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD2523SLX01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.011649s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 176 LIMIT 4 [ RunTime:0.000385s ]
SELECT * FROM `stock_price` WHERE `stockid` = 176 ORDER BY `minOrder` ASC [ RunTime:0.001265s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 176 ORDER BY `unit` DESC [ RunTime:0.000735s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 176 LIMIT 2 [ RunTime:0.000275s ]
SELECT * FROM `stock_price` WHERE `stockid` = 176 ORDER BY `minOrder` ASC [ RunTime:0.000189s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BPW21R' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.009414s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4079 LIMIT 4 [ RunTime:0.005262s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4079 ORDER BY `minOrder` ASC [ RunTime:0.001776s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4079 ORDER BY `unit` DESC [ RunTime:0.003735s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4079 LIMIT 2 [ RunTime:0.005478s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4079 ORDER BY `minOrder` ASC [ RunTime:0.000868s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD2020X01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.005946s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 11496 LIMIT 4 [ RunTime:0.000350s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11496 ORDER BY `minOrder` ASC [ RunTime:0.007463s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 11496 ORDER BY `unit` DESC [ RunTime:0.005097s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 11496 LIMIT 2 [ RunTime:0.000506s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11496 ORDER BY `minOrder` ASC [ RunTime:0.000231s ]
select * from pdf where partno='VEMD4110X01' and brandshort='VISHAY' limit 1 [ RunTime:0.004371s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD4110X01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.006715s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2122 LIMIT 4 [ RunTime:0.000541s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2122 ORDER BY `minOrder` ASC [ RunTime:0.010360s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2122 ORDER BY `unit` DESC [ RunTime:0.000521s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2122 LIMIT 2 [ RunTime:0.000351s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2122 ORDER BY `minOrder` ASC [ RunTime:0.002734s ]
select * from pdf where partno='553-0112F' and brandshort='DIALIGHT' limit 1 [ RunTime:0.003415s ]
select foldpath,foldpath2,filename from pdf_file where id=1116832 limit 1 [ RunTime:0.003731s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '553-0112F' OR `brand` LIKE 'DIALIGHT%' ) ) LIMIT 1 [ RunTime:0.002541s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2261 LIMIT 4 [ RunTime:0.004883s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2261 ORDER BY `minOrder` ASC [ RunTime:0.000671s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2261 ORDER BY `unit` DESC [ RunTime:0.000349s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2261 LIMIT 2 [ RunTime:0.000583s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2261 ORDER BY `minOrder` ASC [ RunTime:0.001875s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BPW20RF' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.010086s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16892 LIMIT 4 [ RunTime:0.001683s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16892 ORDER BY `minOrder` ASC [ RunTime:0.002461s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16892 ORDER BY `unit` DESC [ RunTime:0.001447s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16892 LIMIT 2 [ RunTime:0.008345s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16892 ORDER BY `minOrder` ASC [ RunTime:0.002647s ]
select * from pdf where partno='S1223' and brandshort='HAMAMATSU' limit 1 [ RunTime:0.018188s ]
select foldpath,foldpath2,filename from pdf_file where id=613920 limit 1 [ RunTime:0.011702s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'S1223' OR `brand` LIKE 'HAMAMATSU%' ) ) LIMIT 1 [ RunTime:0.001828s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15873 LIMIT 4 [ RunTime:0.002449s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15873 ORDER BY `minOrder` ASC [ RunTime:0.012770s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15873 ORDER BY `unit` DESC [ RunTime:0.005529s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15873 LIMIT 2 [ RunTime:0.003494s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15873 ORDER BY `minOrder` ASC [ RunTime:0.007815s ]
select * from pdf where partno='S1223' and brandshort='HAMAMATSU' limit 1 [ RunTime:0.003346s ]
select foldpath,foldpath2,filename from pdf_file where id=613920 limit 1 [ RunTime:0.004329s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'S1223' OR `brand` LIKE 'HAMAMATSU%' ) ) LIMIT 1 [ RunTime:0.001940s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2420 LIMIT 4 [ RunTime:0.013157s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2420 ORDER BY `minOrder` ASC [ RunTime:0.000646s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2420 ORDER BY `unit` DESC [ RunTime:0.003353s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2420 LIMIT 2 [ RunTime:0.011208s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2420 ORDER BY `minOrder` ASC [ RunTime:0.001453s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'S1223' OR `brand` LIKE 'HAMAMATSU%' ) ) LIMIT 1 [ RunTime:0.001076s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 7470 LIMIT 4 [ RunTime:0.006318s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7470 ORDER BY `minOrder` ASC [ RunTime:0.020306s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 7470 ORDER BY `unit` DESC [ RunTime:0.004104s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 7470 LIMIT 2 [ RunTime:0.005951s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7470 ORDER BY `minOrder` ASC [ RunTime:0.000373s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ALED1642GWXTTR' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.010642s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6817 LIMIT 4 [ RunTime:0.006323s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6817 ORDER BY `minOrder` ASC [ RunTime:0.004201s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6817 ORDER BY `unit` DESC [ RunTime:0.002946s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6817 LIMIT 2 [ RunTime:0.001325s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6817 ORDER BY `minOrder` ASC [ RunTime:0.000228s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'HCNR201-500E' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.011587s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 12781 LIMIT 4 [ RunTime:0.008396s ]
SELECT * FROM `stock_price` WHERE `stockid` = 12781 ORDER BY `minOrder` ASC [ RunTime:0.011089s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 12781 ORDER BY `unit` DESC [ RunTime:0.003371s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 12781 LIMIT 2 [ RunTime:0.003479s ]
SELECT * FROM `stock_price` WHERE `stockid` = 12781 ORDER BY `minOrder` ASC [ RunTime:0.003495s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BPW76B' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.023812s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13572 LIMIT 4 [ RunTime:0.005377s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13572 ORDER BY `minOrder` ASC [ RunTime:0.017306s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13572 ORDER BY `unit` DESC [ RunTime:0.006960s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13572 LIMIT 2 [ RunTime:0.003655s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13572 ORDER BY `minOrder` ASC [ RunTime:0.000418s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'OSD15-5T.' OR `brand` LIKE 'CENTRONIC%' ) ) LIMIT 1 [ RunTime:0.003135s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8340 LIMIT 4 [ RunTime:0.005997s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8340 ORDER BY `minOrder` ASC [ RunTime:0.003558s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8340 ORDER BY `unit` DESC [ RunTime:0.009549s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8340 LIMIT 2 [ RunTime:0.004088s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8340 ORDER BY `minOrder` ASC [ RunTime:0.003010s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD5060X01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.023054s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 11827 LIMIT 4 [ RunTime:0.004245s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11827 ORDER BY `minOrder` ASC [ RunTime:0.002197s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 11827 ORDER BY `unit` DESC [ RunTime:0.004680s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 11827 LIMIT 2 [ RunTime:0.006236s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11827 ORDER BY `minOrder` ASC [ RunTime:0.000364s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'V102C121A-940' OR `brand` LIKE 'AMS OSRAM GROUP%' ) ) LIMIT 1 [ RunTime:0.002281s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `status` <> 2 AND `categoryid` IN (341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356) ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.001516s ]