SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002004s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.006150s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002355s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.217.79' ) [ RunTime:0.000691s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002024s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000604s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 8 LIMIT 1 [ RunTime:0.007596s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 8 [ RunTime:0.005675s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` IN (33,34,35,36) [ RunTime:0.016741s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.003275s ]
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,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375) ) AND `u`.`lockUser` = '0' [ RunTime:0.003833s ]
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,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375) ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.009883s ]
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 ('4155','3641','5311','10835','7852','176','4079','3643','11496','2122','2261','3335','1126','1125','16957','16892','15939','15873','5213','2420') ORDER BY FIELD(s.id, 4155,3641,5311,10835,7852,176,4079,3643,11496,2122,2261,3335,1126,1125,16957,16892,15939,15873,5213,2420) [ RunTime:0.012704s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002497s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4155 LIMIT 4 [ RunTime:0.001186s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001350s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4155 ORDER BY `minOrder` ASC [ RunTime:0.002416s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.003707s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4155 ORDER BY `unit` DESC [ RunTime:0.001254s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.005437s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4155 LIMIT 2 [ RunTime:0.001107s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4155 ORDER BY `minOrder` ASC [ RunTime:0.000316s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002047s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'NSI45030AT1G' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.019516s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3641 LIMIT 4 [ RunTime:0.004248s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3641 ORDER BY `minOrder` ASC [ RunTime:0.003874s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3641 ORDER BY `unit` DESC [ RunTime:0.003116s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3641 LIMIT 2 [ RunTime:0.000534s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3641 ORDER BY `minOrder` ASC [ RunTime:0.000238s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ASSR-1510-003E' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.006768s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5311 LIMIT 4 [ RunTime:0.000321s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5311 ORDER BY `minOrder` ASC [ RunTime:0.001824s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5311 ORDER BY `unit` DESC [ RunTime:0.007407s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5311 LIMIT 2 [ RunTime:0.001365s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5311 ORDER BY `minOrder` ASC [ RunTime:0.009231s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TEFD4300' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.018959s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 10835 LIMIT 4 [ RunTime:0.006512s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10835 ORDER BY `minOrder` ASC [ RunTime:0.001971s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 10835 ORDER BY `unit` DESC [ RunTime:0.000971s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 10835 LIMIT 2 [ RunTime:0.002984s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10835 ORDER BY `minOrder` ASC [ RunTime:0.013666s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VN330SPTR-E' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.010478s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 7852 LIMIT 4 [ RunTime:0.002519s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7852 ORDER BY `minOrder` ASC [ RunTime:0.002275s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 7852 ORDER BY `unit` DESC [ RunTime:0.000834s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 7852 LIMIT 2 [ RunTime:0.000608s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7852 ORDER BY `minOrder` ASC [ RunTime:0.002801s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD2523SLX01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.010317s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 176 LIMIT 4 [ RunTime:0.001616s ]
SELECT * FROM `stock_price` WHERE `stockid` = 176 ORDER BY `minOrder` ASC [ RunTime:0.001177s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 176 ORDER BY `unit` DESC [ RunTime:0.000664s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 176 LIMIT 2 [ RunTime:0.001748s ]
SELECT * FROM `stock_price` WHERE `stockid` = 176 ORDER BY `minOrder` ASC [ RunTime:0.001759s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BPW21R' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.038445s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4079 LIMIT 4 [ RunTime:0.030719s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4079 ORDER BY `minOrder` ASC [ RunTime:0.038358s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4079 ORDER BY `unit` DESC [ RunTime:0.018027s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4079 LIMIT 2 [ RunTime:0.000597s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4079 ORDER BY `minOrder` ASC [ RunTime:0.000441s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD2020X01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.021900s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3643 LIMIT 4 [ RunTime:0.018404s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3643 ORDER BY `minOrder` ASC [ RunTime:0.018916s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3643 ORDER BY `unit` DESC [ RunTime:0.009613s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3643 LIMIT 2 [ RunTime:0.016708s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3643 ORDER BY `minOrder` ASC [ RunTime:0.003151s ]
select * from pdf where partno='ASSR-3210-003E' and brandshort='BROADCOM' limit 1 [ RunTime:0.018006s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ASSR-3210-003E' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.014286s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 11496 LIMIT 4 [ RunTime:0.002212s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11496 ORDER BY `minOrder` ASC [ RunTime:0.019200s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 11496 ORDER BY `unit` DESC [ RunTime:0.007500s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 11496 LIMIT 2 [ RunTime:0.006621s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11496 ORDER BY `minOrder` ASC [ RunTime:0.000251s ]
select * from pdf where partno='VEMD4110X01' and brandshort='VISHAY' limit 1 [ RunTime:0.002284s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD4110X01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.017132s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2122 LIMIT 4 [ RunTime:0.004311s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2122 ORDER BY `minOrder` ASC [ RunTime:0.001717s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2122 ORDER BY `unit` DESC [ RunTime:0.002109s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2122 LIMIT 2 [ RunTime:0.006552s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2122 ORDER BY `minOrder` ASC [ RunTime:0.000279s ]
select * from pdf where partno='553-0112F' and brandshort='DIALIGHT' limit 1 [ RunTime:0.002431s ]
select foldpath,foldpath2,filename from pdf_file where id=1116832 limit 1 [ RunTime:0.001527s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '553-0112F' OR `brand` LIKE 'DIALIGHT%' ) ) LIMIT 1 [ RunTime:0.001462s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2261 LIMIT 4 [ RunTime:0.011000s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2261 ORDER BY `minOrder` ASC [ RunTime:0.007502s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2261 ORDER BY `unit` DESC [ RunTime:0.005798s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2261 LIMIT 2 [ RunTime:0.000684s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2261 ORDER BY `minOrder` ASC [ RunTime:0.001393s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BPW20RF' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.021659s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3335 LIMIT 4 [ RunTime:0.021025s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3335 ORDER BY `minOrder` ASC [ RunTime:0.007922s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3335 ORDER BY `unit` DESC [ RunTime:0.015143s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3335 LIMIT 2 [ RunTime:0.009406s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3335 ORDER BY `minOrder` ASC [ RunTime:0.000727s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'FAN5333BSX' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.016390s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1126 LIMIT 4 [ RunTime:0.001104s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1126 ORDER BY `minOrder` ASC [ RunTime:0.007675s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1126 ORDER BY `unit` DESC [ RunTime:0.003202s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1126 LIMIT 2 [ RunTime:0.014680s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1126 ORDER BY `minOrder` ASC [ RunTime:0.009710s ]
select * from pdf where partno='CX240D5' and brandshort='SENSATA/CRYDOM' limit 1 [ RunTime:0.002339s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CX240D5' OR `brand` LIKE 'SENSATA/CRYDOM%' ) ) LIMIT 1 [ RunTime:0.006133s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1125 LIMIT 4 [ RunTime:0.020054s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1125 ORDER BY `minOrder` ASC [ RunTime:0.008919s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1125 ORDER BY `unit` DESC [ RunTime:0.007294s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1125 LIMIT 2 [ RunTime:0.006060s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1125 ORDER BY `minOrder` ASC [ RunTime:0.011313s ]
select * from pdf where partno='CMX60D10' and brandshort='SENSATA/CRYDOM' limit 1 [ RunTime:0.017750s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CMX60D10' OR `brand` LIKE 'SENSATA/CRYDOM%' ) ) LIMIT 1 [ RunTime:0.006781s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16957 LIMIT 4 [ RunTime:0.011790s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16957 ORDER BY `minOrder` ASC [ RunTime:0.007319s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16957 ORDER BY `unit` DESC [ RunTime:0.003079s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16957 LIMIT 2 [ RunTime:0.009067s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16957 ORDER BY `minOrder` ASC [ RunTime:0.003376s ]
select * from pdf where partno='G3VM-202J1' and brandshort='OMRON' limit 1 [ RunTime:0.010161s ]
select foldpath,foldpath2,filename from pdf_file where id=689977 limit 1 [ RunTime:0.003851s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'G3VM-202J1' OR `brand` LIKE 'OMRON%' ) ) LIMIT 1 [ RunTime:0.022178s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16892 LIMIT 4 [ RunTime:0.007228s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16892 ORDER BY `minOrder` ASC [ RunTime:0.001915s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16892 ORDER BY `unit` DESC [ RunTime:0.000632s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16892 LIMIT 2 [ RunTime:0.002104s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16892 ORDER BY `minOrder` ASC [ RunTime:0.005865s ]
select * from pdf where partno='S1223' and brandshort='HAMAMATSU' limit 1 [ RunTime:0.002236s ]
select foldpath,foldpath2,filename from pdf_file where id=613920 limit 1 [ RunTime:0.002154s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'S1223' OR `brand` LIKE 'HAMAMATSU%' ) ) LIMIT 1 [ RunTime:0.002692s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15939 LIMIT 4 [ RunTime:0.000561s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15939 ORDER BY `minOrder` ASC [ RunTime:0.000707s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15939 ORDER BY `unit` DESC [ RunTime:0.010130s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15939 LIMIT 2 [ RunTime:0.004397s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15939 ORDER BY `minOrder` ASC [ RunTime:0.004236s ]
select * from pdf where partno='G3VM-202J1' and brandshort='OMRON' limit 1 [ RunTime:0.000508s ]
select foldpath,foldpath2,filename from pdf_file where id=689977 limit 1 [ RunTime:0.001546s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'G3VM-202J1' OR `brand` LIKE 'OMRON%' ) ) LIMIT 1 [ RunTime:0.001839s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15873 LIMIT 4 [ RunTime:0.008352s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15873 ORDER BY `minOrder` ASC [ RunTime:0.013580s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15873 ORDER BY `unit` DESC [ RunTime:0.006813s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15873 LIMIT 2 [ RunTime:0.023097s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15873 ORDER BY `minOrder` ASC [ RunTime:0.001303s ]
select * from pdf where partno='S1223' and brandshort='HAMAMATSU' limit 1 [ RunTime:0.002363s ]
select foldpath,foldpath2,filename from pdf_file where id=613920 limit 1 [ RunTime:0.000394s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'S1223' OR `brand` LIKE 'HAMAMATSU%' ) ) LIMIT 1 [ RunTime:0.000456s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5213 LIMIT 4 [ RunTime:0.000783s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5213 ORDER BY `minOrder` ASC [ RunTime:0.015793s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5213 ORDER BY `unit` DESC [ RunTime:0.011687s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5213 LIMIT 2 [ RunTime:0.001847s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5213 ORDER BY `minOrder` ASC [ RunTime:0.008152s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'G3VM-202J1' OR `brand` LIKE 'OMRON%' ) ) LIMIT 1 [ RunTime:0.004072s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2420 LIMIT 4 [ RunTime:0.008823s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2420 ORDER BY `minOrder` ASC [ RunTime:0.011767s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2420 ORDER BY `unit` DESC [ RunTime:0.032572s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2420 LIMIT 2 [ RunTime:0.016963s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2420 ORDER BY `minOrder` ASC [ RunTime:0.022836s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'S1223' OR `brand` LIKE 'HAMAMATSU%' ) ) LIMIT 1 [ RunTime:0.007324s ]
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,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375) ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.010228s ]