SHOW FULL COLUMNS FROM `visit_log` [ RunTime:0.003149s ]
INSERT INTO `visit_log` SET `ip` = '216.73.217.83' , `useragent` = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' , `reffer` = '' , `host` = 'https://www.ic118.com/category_635/1.html' [ RunTime:0.002581s ]
SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002471s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.005057s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002673s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.217.83' ) [ RunTime:0.000838s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.005053s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000889s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 635 [ RunTime:0.000944s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 635 LIMIT 1 [ RunTime:0.000606s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002966s ]
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` = '635' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.001828s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002425s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13687 LIMIT 5 [ RunTime:0.000790s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002288s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13687 ORDER BY `minOrder` ASC [ RunTime:0.001414s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.002173s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13687 ORDER BY `unit` DESC [ RunTime:0.001054s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002293s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13687 LIMIT 2 [ RunTime:0.001018s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13687 ORDER BY `minOrder` ASC [ RunTime:0.000915s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002700s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '6220.2300' OR `brand` LIKE 'SCHURTER%' ) ) LIMIT 1 [ RunTime:0.007730s ]
SELECT `id` FROM `stock` WHERE `id` <> 13687 AND `partno` = '6220.2300' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%schurter%' ) [ RunTime:0.002461s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 10030 LIMIT 5 [ RunTime:0.000822s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10030 ORDER BY `minOrder` ASC [ RunTime:0.002826s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 10030 ORDER BY `unit` DESC [ RunTime:0.001984s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 10030 LIMIT 2 [ RunTime:0.001131s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10030 ORDER BY `minOrder` ASC [ RunTime:0.000831s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'GDS 207' OR `brand` LIKE 'HIRSCHMANN%' ) ) LIMIT 1 [ RunTime:0.002277s ]
SELECT `id` FROM `stock` WHERE `id` <> 10030 AND `partno` = 'GDS 207' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%hirschmann%' ) [ RunTime:0.001586s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 10029 LIMIT 5 [ RunTime:0.000746s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10029 ORDER BY `minOrder` ASC [ RunTime:0.000814s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 10029 ORDER BY `unit` DESC [ RunTime:0.000760s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 10029 LIMIT 2 [ RunTime:0.000661s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10029 ORDER BY `minOrder` ASC [ RunTime:0.000800s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'STAK 3 N SCHWARZ/BLACK' OR `brand` LIKE 'HIRSCHMANN%' ) ) LIMIT 1 [ RunTime:0.001302s ]
SELECT `id` FROM `stock` WHERE `id` <> 10029 AND `partno` = 'STAK 3 N SCHWARZ/BLACK' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%hirschmann%' ) [ RunTime:0.001606s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 11641 LIMIT 5 [ RunTime:0.000663s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11641 ORDER BY `minOrder` ASC [ RunTime:0.001225s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 11641 ORDER BY `unit` DESC [ RunTime:0.000978s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 11641 LIMIT 2 [ RunTime:0.001032s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11641 ORDER BY `minOrder` ASC [ RunTime:0.000790s ]
select * from pdf where partno='9-176975-1' and brandshort='AMP - TE CONNECTIVITY' limit 1 [ RunTime:0.001720s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '9-176975-1' OR `brand` LIKE 'AMP - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.001498s ]
SELECT `id` FROM `stock` WHERE `id` <> 11641 AND `partno` = '9-176975-1' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%amp - te connectivity%' ) [ RunTime:0.001749s ]
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` = '635' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.001298s ]
SELECT brand, count(*) as count FROM ( SELECT `brand` FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '635' ) LIMIT 4 ) tmp GROUP BY `brand` [ RunTime:0.001673s ]