SHOW FULL COLUMNS FROM `visit_log` [ RunTime:0.001228s ]
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=156' [ RunTime:0.005461s ]
SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001177s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.002040s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001605s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.217.46' ) [ RunTime:0.004036s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001260s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.004649s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 156 [ RunTime:0.007976s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 156 LIMIT 1 [ RunTime:0.000201s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001206s ]
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` = '156' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.007641s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.003446s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16087 LIMIT 4 [ RunTime:0.004994s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002958s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16087 ORDER BY `minOrder` ASC [ RunTime:0.008513s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.005023s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16087 ORDER BY `unit` DESC [ RunTime:0.013919s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.010961s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16087 LIMIT 2 [ RunTime:0.016318s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16087 ORDER BY `minOrder` ASC [ RunTime:0.004071s ]
select * from pdf where partno='BK-HKP-R' and brandshort='EATON BUSSMANN' limit 1 [ RunTime:0.007353s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001733s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BK-HKP-R' OR `brand` LIKE 'EATON BUSSMANN%' ) ) LIMIT 1 [ RunTime:0.008966s ]
SELECT `id` FROM `stock` WHERE `id` <> 16087 AND `partno` = 'BK-HKP-R' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%eaton bussmann%' ) [ RunTime:0.009217s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 12594 [ RunTime:0.001382s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 17105 [ RunTime:0.005597s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15607 LIMIT 4 [ RunTime:0.015998s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15607 ORDER BY `minOrder` ASC [ RunTime:0.010704s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15607 ORDER BY `unit` DESC [ RunTime:0.021320s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15607 LIMIT 2 [ RunTime:0.008607s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15607 ORDER BY `minOrder` ASC [ RunTime:0.003002s ]
select * from pdf where partno='4245C' and brandshort='KEYSTONE' limit 1 [ RunTime:0.010368s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '4245C' OR `brand` LIKE 'KEYSTONE%' ) ) LIMIT 1 [ RunTime:0.014148s ]
SELECT `id` FROM `stock` WHERE `id` <> 15607 AND `partno` = '4245C' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%keystone%' ) [ RunTime:0.041419s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2851 [ RunTime:0.014038s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16626 [ RunTime:0.026667s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13819142 [ RunTime:0.011941s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15582 LIMIT 4 [ RunTime:0.023702s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15582 ORDER BY `minOrder` ASC [ RunTime:0.039630s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15582 ORDER BY `unit` DESC [ RunTime:0.034178s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15582 LIMIT 2 [ RunTime:0.069756s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15582 ORDER BY `minOrder` ASC [ RunTime:0.012934s ]
select * from pdf where partno='82000000005' and brandshort='LITTELFUSE' limit 1 [ RunTime:0.025124s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '82000000005' OR `brand` LIKE 'LITTELFUSE%' ) ) LIMIT 1 [ RunTime:0.057358s ]
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` = '156' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.023324s ]
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` = '156' ) LIMIT 3 ) tmp GROUP BY `brand` [ RunTime:0.068918s ]