SHOW FULL COLUMNS FROM `visit_log` [ RunTime:0.001443s ]
INSERT INTO `visit_log` SET `ip` = '216.73.216.133' , `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=635' [ RunTime:0.003218s ]
SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001377s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000536s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002591s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.133' ) [ RunTime:0.004386s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001156s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000621s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 635 [ RunTime:0.001518s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 635 LIMIT 1 [ RunTime:0.003680s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001453s ]
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.000926s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002572s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13687 LIMIT 5 [ RunTime:0.007758s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002160s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13687 ORDER BY `minOrder` ASC [ RunTime:0.002962s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001520s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13687 ORDER BY `unit` DESC [ RunTime:0.000858s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001432s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13687 LIMIT 2 [ RunTime:0.000751s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13687 ORDER BY `minOrder` ASC [ RunTime:0.010431s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001430s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '6220.2300' OR `brand` LIKE 'SCHURTER%' ) ) LIMIT 1 [ RunTime:0.010799s ]
SELECT `id` FROM `stock` WHERE `id` <> 13687 AND `partno` = '6220.2300' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%schurter%' ) [ RunTime:0.002380s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 10030 LIMIT 5 [ RunTime:0.000496s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10030 ORDER BY `minOrder` ASC [ RunTime:0.004624s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 10030 ORDER BY `unit` DESC [ RunTime:0.000591s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 10030 LIMIT 2 [ RunTime:0.008957s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10030 ORDER BY `minOrder` ASC [ RunTime:0.001741s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'GDS 207' OR `brand` LIKE 'HIRSCHMANN%' ) ) LIMIT 1 [ RunTime:0.000965s ]
SELECT `id` FROM `stock` WHERE `id` <> 10030 AND `partno` = 'GDS 207' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%hirschmann%' ) [ RunTime:0.000770s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 10029 LIMIT 5 [ RunTime:0.005095s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10029 ORDER BY `minOrder` ASC [ RunTime:0.002634s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 10029 ORDER BY `unit` DESC [ RunTime:0.006209s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 10029 LIMIT 2 [ RunTime:0.008754s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10029 ORDER BY `minOrder` ASC [ RunTime:0.005444s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'STAK 3 N SCHWARZ/BLACK' OR `brand` LIKE 'HIRSCHMANN%' ) ) LIMIT 1 [ RunTime:0.006569s ]
SELECT `id` FROM `stock` WHERE `id` <> 10029 AND `partno` = 'STAK 3 N SCHWARZ/BLACK' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%hirschmann%' ) [ RunTime:0.013598s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 11641 LIMIT 5 [ RunTime:0.002912s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11641 ORDER BY `minOrder` ASC [ RunTime:0.025620s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 11641 ORDER BY `unit` DESC [ RunTime:0.011117s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 11641 LIMIT 2 [ RunTime:0.010752s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11641 ORDER BY `minOrder` ASC [ RunTime:0.003202s ]
select * from pdf where partno='9-176975-1' and brandshort='AMP - TE CONNECTIVITY' limit 1 [ RunTime:0.028893s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '9-176975-1' OR `brand` LIKE 'AMP - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.018090s ]
SELECT `id` FROM `stock` WHERE `id` <> 11641 AND `partno` = '9-176975-1' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%amp - te connectivity%' ) [ RunTime:0.020019s ]
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.033334s ]
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.010028s ]