SHOW FULL COLUMNS FROM `visit_log` [ RunTime:0.001438s ]
INSERT INTO `visit_log` SET `ip` = '216.73.217.62' , `useragent` = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' , `reffer` = '' , `host` = 'https://www.ic118.com/stock?typeid=347' [ RunTime:0.001951s ]
SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001566s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.003365s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002347s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.217.62' ) [ RunTime:0.000450s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001122s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000382s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 347 [ RunTime:0.000687s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 347 LIMIT 1 [ RunTime:0.000269s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001485s ]
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` FORCE INDEX ( idx_categoryid ) LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '347' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.000801s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002846s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5311 LIMIT 5 [ RunTime:0.000421s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001045s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5311 ORDER BY `minOrder` ASC [ RunTime:0.000378s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001186s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5311 ORDER BY `unit` DESC [ RunTime:0.000350s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001248s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5311 LIMIT 2 [ RunTime:0.000325s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5311 ORDER BY `minOrder` ASC [ RunTime:0.000387s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001281s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TEFD4300' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.009273s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 7852 LIMIT 5 [ RunTime:0.000529s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7852 ORDER BY `minOrder` ASC [ RunTime:0.000383s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 7852 ORDER BY `unit` DESC [ RunTime:0.000302s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 7852 LIMIT 2 [ RunTime:0.000281s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7852 ORDER BY `minOrder` ASC [ RunTime:0.000339s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD2523SLX01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.008902s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 176 LIMIT 5 [ RunTime:0.000410s ]
SELECT * FROM `stock_price` WHERE `stockid` = 176 ORDER BY `minOrder` ASC [ RunTime:0.000440s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 176 ORDER BY `unit` DESC [ RunTime:0.000334s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 176 LIMIT 2 [ RunTime:0.000302s ]
SELECT * FROM `stock_price` WHERE `stockid` = 176 ORDER BY `minOrder` ASC [ RunTime:0.000415s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BPW21R' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.008943s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4079 LIMIT 5 [ RunTime:0.000434s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4079 ORDER BY `minOrder` ASC [ RunTime:0.000462s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4079 ORDER BY `unit` DESC [ RunTime:0.000342s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4079 LIMIT 2 [ RunTime:0.000278s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4079 ORDER BY `minOrder` ASC [ RunTime:0.000340s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD2020X01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.007980s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 11496 LIMIT 5 [ RunTime:0.000372s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11496 ORDER BY `minOrder` ASC [ RunTime:0.000438s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 11496 ORDER BY `unit` DESC [ RunTime:0.000364s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 11496 LIMIT 2 [ RunTime:0.000323s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11496 ORDER BY `minOrder` ASC [ RunTime:0.000402s ]
select * from pdf where partno='VEMD4110X01' and brandshort='VISHAY' limit 1 [ RunTime:0.001430s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD4110X01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.017002s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2261 LIMIT 5 [ RunTime:0.000789s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2261 ORDER BY `minOrder` ASC [ RunTime:0.000635s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2261 ORDER BY `unit` DESC [ RunTime:0.000549s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2261 LIMIT 2 [ RunTime:0.000541s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2261 ORDER BY `minOrder` ASC [ RunTime:0.000586s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BPW20RF' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.016442s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16892 LIMIT 5 [ RunTime:0.000695s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16892 ORDER BY `minOrder` ASC [ RunTime:0.000695s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16892 ORDER BY `unit` DESC [ RunTime:0.000607s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16892 LIMIT 2 [ RunTime:0.000551s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16892 ORDER BY `minOrder` ASC [ RunTime:0.000363s ]
select * from pdf where partno='S1223' and brandshort='HAMAMATSU' limit 1 [ RunTime:0.001197s ]
select foldpath,foldpath2,filename from pdf_file where id=613920 limit 1 [ RunTime:0.000388s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'S1223' OR `brand` LIKE 'HAMAMATSU%' ) ) LIMIT 1 [ RunTime:0.001053s ]
SELECT `id` FROM `stock` WHERE `id` <> 16892 AND `partno` = 'S1223' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%hamamatsu%' ) [ RunTime:0.001999s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2420 [ RunTime:0.000292s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15873 [ RunTime:0.000249s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15873 LIMIT 5 [ RunTime:0.000252s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15873 ORDER BY `minOrder` ASC [ RunTime:0.000374s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15873 ORDER BY `unit` DESC [ RunTime:0.000389s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15873 LIMIT 2 [ RunTime:0.000282s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15873 ORDER BY `minOrder` ASC [ RunTime:0.000351s ]
select * from pdf where partno='S1223' and brandshort='HAMAMATSU' limit 1 [ RunTime:0.000515s ]
select foldpath,foldpath2,filename from pdf_file where id=613920 limit 1 [ RunTime:0.000244s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'S1223' OR `brand` LIKE 'HAMAMATSU%' ) ) LIMIT 1 [ RunTime:0.000423s ]
SELECT `id` FROM `stock` WHERE `id` <> 15873 AND `partno` = 'S1223' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%hamamatsu%' ) [ RunTime:0.000452s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2420 [ RunTime:0.000287s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16892 [ RunTime:0.000294s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2420 LIMIT 5 [ RunTime:0.000280s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2420 ORDER BY `minOrder` ASC [ RunTime:0.000405s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2420 ORDER BY `unit` DESC [ RunTime:0.000356s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2420 LIMIT 2 [ RunTime:0.000319s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2420 ORDER BY `minOrder` ASC [ RunTime:0.000362s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'S1223' OR `brand` LIKE 'HAMAMATSU%' ) ) LIMIT 1 [ RunTime:0.000472s ]
SELECT `id` FROM `stock` WHERE `id` <> 2420 AND `partno` = 'S1223' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%hamamatsu%' ) [ RunTime:0.000517s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15873 [ RunTime:0.000317s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16892 [ RunTime:0.000314s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6817 LIMIT 5 [ RunTime:0.000311s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6817 ORDER BY `minOrder` ASC [ RunTime:0.000388s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6817 ORDER BY `unit` DESC [ RunTime:0.000359s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6817 LIMIT 2 [ RunTime:0.000293s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6817 ORDER BY `minOrder` ASC [ RunTime:0.000296s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'HCNR201-500E' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.003438s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13572 LIMIT 5 [ RunTime:0.000494s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13572 ORDER BY `minOrder` ASC [ RunTime:0.000368s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13572 ORDER BY `unit` DESC [ RunTime:0.000342s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13572 LIMIT 2 [ RunTime:0.000323s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13572 ORDER BY `minOrder` ASC [ RunTime:0.000390s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'OSD15-5T.' OR `brand` LIKE 'CENTRONIC%' ) ) LIMIT 1 [ RunTime:0.000781s ]
SELECT `id` FROM `stock` WHERE `id` <> 13572 AND `partno` = 'OSD15-5T.' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%centronic%' ) [ RunTime:0.000973s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8340 LIMIT 5 [ RunTime:0.000321s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8340 ORDER BY `minOrder` ASC [ RunTime:0.000354s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8340 ORDER BY `unit` DESC [ RunTime:0.000319s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8340 LIMIT 2 [ RunTime:0.000339s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8340 ORDER BY `minOrder` ASC [ RunTime:0.000358s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD5060X01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.008051s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` FORCE INDEX ( idx_categoryid ) LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '347' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.000742s ]
SELECT brand, count(*) as count FROM ( SELECT `brand` FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '347' ) LIMIT 12 ) tmp GROUP BY `brand` [ RunTime:0.001064s ]