SHOW FULL COLUMNS FROM `visit_log` [ RunTime:0.002120s ]
INSERT INTO `visit_log` SET `ip` = '216.73.217.46' , `useragent` = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' , `reffer` = '' , `host` = 'https://www.ic118.com/stock&status=4&typeid=676' [ RunTime:0.014752s ]
SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002213s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.013058s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002968s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.217.46' ) [ RunTime:0.010239s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002293s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.005828s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 676 [ RunTime:0.003601s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 676 LIMIT 1 [ RunTime:0.014889s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002354s ]
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`.`status` = '4' AND `s`.`status` <> '2' AND `s`.`categoryid` = '676' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.007687s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.005462s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15347 LIMIT 4 [ RunTime:0.032062s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.013435s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15347 ORDER BY `minOrder` ASC [ RunTime:0.037795s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.016100s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15347 ORDER BY `unit` DESC [ RunTime:0.062710s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.007862s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15347 LIMIT 2 [ RunTime:0.001933s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15347 ORDER BY `minOrder` ASC [ RunTime:0.007402s ]
select * from pdf where partno='36280' and brandshort='WIHA' limit 1 [ RunTime:0.070319s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002518s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '36280' OR `brand` LIKE 'WIHA%' ) ) LIMIT 1 [ RunTime:0.035253s ]
SELECT `id` FROM `stock` WHERE `id` <> 15347 AND `partno` = '36280' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%wiha%' ) [ RunTime:0.065984s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3086 [ RunTime:0.015759s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16367 [ RunTime:0.007567s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 12166313 [ RunTime:0.070076s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15219 LIMIT 4 [ RunTime:0.053395s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15219 ORDER BY `minOrder` ASC [ RunTime:0.060911s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15219 ORDER BY `unit` DESC [ RunTime:0.032270s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15219 LIMIT 2 [ RunTime:0.003476s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15219 ORDER BY `minOrder` ASC [ RunTime:0.008082s ]
select * from pdf where partno='26101' and brandshort='WIHA' limit 1 [ RunTime:0.020648s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '26101' OR `brand` LIKE 'WIHA%' ) ) LIMIT 1 [ RunTime:0.016271s ]
SELECT `id` FROM `stock` WHERE `id` <> 15219 AND `partno` = '26101' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%wiha%' ) [ RunTime:0.043275s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3049 [ RunTime:0.094894s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15114 [ RunTime:0.034873s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 12167250 [ RunTime:0.078763s ]
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`.`status` = '4' AND `s`.`status` <> '2' AND `s`.`categoryid` = '676' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.019100s ]
SELECT brand, count(*) as count FROM ( SELECT `brand` FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`status` = '4' AND `s`.`status` <> '2' AND `s`.`categoryid` = '676' ) LIMIT 2 ) tmp GROUP BY `brand` [ RunTime:0.093427s ]