SHOW FULL COLUMNS FROM `visit_log` [ RunTime:0.001337s ]
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=105' [ RunTime:0.004901s ]
SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001866s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000790s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001256s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.217.46' ) [ RunTime:0.004210s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001501s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000418s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 105 [ RunTime:0.000448s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 105 LIMIT 1 [ RunTime:0.000296s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002413s ]
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` = '105' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.015088s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001484s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15806 LIMIT 4 [ RunTime:0.011841s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002112s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15806 ORDER BY `minOrder` ASC [ RunTime:0.008100s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001246s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15806 ORDER BY `unit` DESC [ RunTime:0.003707s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.014194s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15806 LIMIT 2 [ RunTime:0.000494s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15806 ORDER BY `minOrder` ASC [ RunTime:0.003504s ]
select * from pdf where partno='MC74HC595ADTR2G' and brandshort='ONSEMI' limit 1 [ RunTime:0.007755s ]
select foldpath,foldpath2,filename from pdf_file where id=1135691 limit 1 [ RunTime:0.001836s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002868s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MC74HC595ADTR2G' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.001609s ]
SELECT `id` FROM `stock` WHERE `id` <> 15806 AND `partno` = 'MC74HC595ADTR2G' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%onsemi%' ) [ RunTime:0.008085s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2848 [ RunTime:0.000665s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16825 [ RunTime:0.006044s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16101557 [ RunTime:0.000782s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15531 LIMIT 4 [ RunTime:0.002871s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15531 ORDER BY `minOrder` ASC [ RunTime:0.002186s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15531 ORDER BY `unit` DESC [ RunTime:0.001618s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15531 LIMIT 2 [ RunTime:0.002108s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15531 ORDER BY `minOrder` ASC [ RunTime:0.013106s ]
select * from pdf where partno='MM74HC595MTCX' and brandshort='ONSEMI' limit 1 [ RunTime:0.003300s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MM74HC595MTCX' OR `brand` LIKE 'ONSEMI%' ) ) LIMIT 1 [ RunTime:0.015191s ]
SELECT `id` FROM `stock` WHERE `id` <> 15531 AND `partno` = 'MM74HC595MTCX' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%onsemi%' ) [ RunTime:0.011804s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 7391 [ RunTime:0.007976s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16551 [ RunTime:0.000418s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 19198441 [ RunTime:0.003579s ]
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` = '105' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.005935s ]
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` = '105' ) LIMIT 2 ) tmp GROUP BY `brand` [ RunTime:0.009261s ]