SHOW FULL COLUMNS FROM `visit_log` [ RunTime:0.002116s ]
INSERT INTO `visit_log` SET `ip` = '216.73.217.116' , `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.001906s ]
SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002516s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000626s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002697s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.217.116' ) [ RunTime:0.000367s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001903s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.003253s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 347 [ RunTime:0.000401s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 347 LIMIT 1 [ RunTime:0.000305s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002410s ]
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.006772s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002505s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5311 LIMIT 5 [ RunTime:0.000356s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002485s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5311 ORDER BY `minOrder` ASC [ RunTime:0.009025s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.002316s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5311 ORDER BY `unit` DESC [ RunTime:0.004518s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002162s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5311 LIMIT 2 [ RunTime:0.000278s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5311 ORDER BY `minOrder` ASC [ RunTime:0.000263s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002100s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TEFD4300' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.002008s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 7852 LIMIT 5 [ RunTime:0.006587s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7852 ORDER BY `minOrder` ASC [ RunTime:0.000342s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 7852 ORDER BY `unit` DESC [ RunTime:0.000366s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 7852 LIMIT 2 [ RunTime:0.000235s ]
SELECT * FROM `stock_price` WHERE `stockid` = 7852 ORDER BY `minOrder` ASC [ RunTime:0.000243s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD2523SLX01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.000259s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 176 LIMIT 5 [ RunTime:0.000232s ]
SELECT * FROM `stock_price` WHERE `stockid` = 176 ORDER BY `minOrder` ASC [ RunTime:0.000286s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 176 ORDER BY `unit` DESC [ RunTime:0.002131s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 176 LIMIT 2 [ RunTime:0.002375s ]
SELECT * FROM `stock_price` WHERE `stockid` = 176 ORDER BY `minOrder` ASC [ RunTime:0.000252s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BPW21R' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.000286s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4079 LIMIT 5 [ RunTime:0.000267s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4079 ORDER BY `minOrder` ASC [ RunTime:0.000265s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4079 ORDER BY `unit` DESC [ RunTime:0.000280s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4079 LIMIT 2 [ RunTime:0.000277s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4079 ORDER BY `minOrder` ASC [ RunTime:0.000254s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD2020X01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.000242s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 11496 LIMIT 5 [ RunTime:0.000227s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11496 ORDER BY `minOrder` ASC [ RunTime:0.000236s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 11496 ORDER BY `unit` DESC [ RunTime:0.000251s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 11496 LIMIT 2 [ RunTime:0.000266s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11496 ORDER BY `minOrder` ASC [ RunTime:0.000283s ]
select * from pdf where partno='VEMD4110X01' and brandshort='VISHAY' limit 1 [ RunTime:0.000391s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD4110X01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.000389s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2261 LIMIT 5 [ RunTime:0.000260s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2261 ORDER BY `minOrder` ASC [ RunTime:0.000256s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2261 ORDER BY `unit` DESC [ RunTime:0.000252s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2261 LIMIT 2 [ RunTime:0.000237s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2261 ORDER BY `minOrder` ASC [ RunTime:0.000238s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BPW20RF' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.000422s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16892 LIMIT 5 [ RunTime:0.000266s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16892 ORDER BY `minOrder` ASC [ RunTime:0.000256s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16892 ORDER BY `unit` DESC [ RunTime:0.000253s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16892 LIMIT 2 [ RunTime:0.000241s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16892 ORDER BY `minOrder` ASC [ RunTime:0.000245s ]
select * from pdf where partno='S1223' and brandshort='HAMAMATSU' limit 1 [ RunTime:0.000350s ]
select foldpath,foldpath2,filename from pdf_file where id=613920 limit 1 [ RunTime:0.000256s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'S1223' OR `brand` LIKE 'HAMAMATSU%' ) ) LIMIT 1 [ RunTime:0.000284s ]
SELECT `id` FROM `stock` WHERE `id` <> 16892 AND `partno` = 'S1223' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%hamamatsu%' ) [ RunTime:0.000317s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2420 [ RunTime:0.000262s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15873 [ RunTime:0.000222s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15873 LIMIT 5 [ RunTime:0.007338s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15873 ORDER BY `minOrder` ASC [ RunTime:0.002555s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15873 ORDER BY `unit` DESC [ RunTime:0.000331s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15873 LIMIT 2 [ RunTime:0.000238s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15873 ORDER BY `minOrder` ASC [ RunTime:0.000246s ]
select * from pdf where partno='S1223' and brandshort='HAMAMATSU' limit 1 [ RunTime:0.000331s ]
select foldpath,foldpath2,filename from pdf_file where id=613920 limit 1 [ RunTime:0.000227s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'S1223' OR `brand` LIKE 'HAMAMATSU%' ) ) LIMIT 1 [ RunTime:0.000280s ]
SELECT `id` FROM `stock` WHERE `id` <> 15873 AND `partno` = 'S1223' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%hamamatsu%' ) [ RunTime:0.000274s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2420 [ RunTime:0.000241s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16892 [ RunTime:0.000240s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2420 LIMIT 5 [ RunTime:0.000223s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2420 ORDER BY `minOrder` ASC [ RunTime:0.007345s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2420 ORDER BY `unit` DESC [ RunTime:0.001958s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2420 LIMIT 2 [ RunTime:0.000292s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2420 ORDER BY `minOrder` ASC [ RunTime:0.000237s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'S1223' OR `brand` LIKE 'HAMAMATSU%' ) ) LIMIT 1 [ RunTime:0.000247s ]
SELECT `id` FROM `stock` WHERE `id` <> 2420 AND `partno` = 'S1223' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%hamamatsu%' ) [ RunTime:0.000246s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15873 [ RunTime:0.000197s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16892 [ RunTime:0.000206s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6817 LIMIT 5 [ RunTime:0.000206s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6817 ORDER BY `minOrder` ASC [ RunTime:0.000258s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6817 ORDER BY `unit` DESC [ RunTime:0.000262s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6817 LIMIT 2 [ RunTime:0.000254s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6817 ORDER BY `minOrder` ASC [ RunTime:0.004674s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'HCNR201-500E' OR `brand` LIKE 'BROADCOM%' ) ) LIMIT 1 [ RunTime:0.000378s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13572 LIMIT 5 [ RunTime:0.000296s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13572 ORDER BY `minOrder` ASC [ RunTime:0.000256s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13572 ORDER BY `unit` DESC [ RunTime:0.000221s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13572 LIMIT 2 [ RunTime:0.000197s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13572 ORDER BY `minOrder` ASC [ RunTime:0.000215s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'OSD15-5T.' OR `brand` LIKE 'CENTRONIC%' ) ) LIMIT 1 [ RunTime:0.000233s ]
SELECT `id` FROM `stock` WHERE `id` <> 13572 AND `partno` = 'OSD15-5T.' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%centronic%' ) [ RunTime:0.001045s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8340 LIMIT 5 [ RunTime:0.000199s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8340 ORDER BY `minOrder` ASC [ RunTime:0.000239s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8340 ORDER BY `unit` DESC [ RunTime:0.000204s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8340 LIMIT 2 [ RunTime:0.001689s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8340 ORDER BY `minOrder` ASC [ RunTime:0.000210s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VEMD5060X01' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.000213s ]
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.001795s ]
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.000808s ]