SHOW FULL COLUMNS FROM `visit_log` [ RunTime:0.001416s ]
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=148' [ RunTime:0.003308s ]
SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001393s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.006924s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001761s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.217.46' ) [ RunTime:0.024366s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002251s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.044635s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 148 [ RunTime:0.060761s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 148 LIMIT 1 [ RunTime:0.000366s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002924s ]
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` = '148' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.026484s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002373s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16065 LIMIT 4 [ RunTime:0.031762s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002186s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16065 ORDER BY `minOrder` ASC [ RunTime:0.010153s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.002233s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16065 ORDER BY `unit` DESC [ RunTime:0.016962s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.003880s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16065 LIMIT 2 [ RunTime:0.029103s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16065 ORDER BY `minOrder` ASC [ RunTime:0.024376s ]
select * from pdf where partno='V100ZA15P' and brandshort='LITTELFUSE' limit 1 [ RunTime:0.027849s ]
select foldpath,foldpath2,filename from pdf_file where id=179201 limit 1 [ RunTime:0.006077s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001663s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'V100ZA15P' OR `brand` LIKE 'LITTELFUSE%' ) ) LIMIT 1 [ RunTime:0.003471s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15638 LIMIT 4 [ RunTime:0.011919s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15638 ORDER BY `minOrder` ASC [ RunTime:0.042435s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15638 ORDER BY `unit` DESC [ RunTime:0.008946s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15638 LIMIT 2 [ RunTime:0.010977s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15638 ORDER BY `minOrder` ASC [ RunTime:0.008560s ]
select * from pdf where partno='B72207S0251K101' and brandshort='EPCOS' limit 1 [ RunTime:0.013124s ]
select foldpath,foldpath2,filename from pdf_file where id=566331 limit 1 [ RunTime:0.010326s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'B72207S0251K101' OR `brand` LIKE 'EPCOS%' ) ) LIMIT 1 [ RunTime:0.045133s ]
SELECT `id` FROM `stock` WHERE `id` <> 15638 AND `partno` = 'B72207S0251K101' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%epcos%' ) [ RunTime:0.032613s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 66 [ RunTime:0.011057s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16657 [ RunTime:0.028692s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 14842293 [ RunTime:0.017527s ]
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` = '148' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.007483s ]
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` = '148' ) LIMIT 2 ) tmp GROUP BY `brand` [ RunTime:0.008035s ]