SHOW FULL COLUMNS FROM `visit_log` [ RunTime:0.002268s ]
INSERT INTO `visit_log` SET `ip` = '216.73.217.70' , `useragent` = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' , `reffer` = '' , `host` = 'https://www.ic118.com/category_186/1.html' [ RunTime:0.014504s ]
SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002096s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.024661s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.003138s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.217.70' ) [ RunTime:0.003082s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002866s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.001193s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 186 [ RunTime:0.009554s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 186 LIMIT 1 [ RunTime:0.006632s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.003290s ]
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` = '186' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.050353s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.015179s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 951 LIMIT 5 [ RunTime:0.019978s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.022772s ]
SELECT * FROM `stock_price` WHERE `stockid` = 951 ORDER BY `minOrder` ASC [ RunTime:0.035951s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.003038s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 951 ORDER BY `unit` DESC [ RunTime:0.023054s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002879s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 951 LIMIT 2 [ RunTime:0.064407s ]
SELECT * FROM `stock_price` WHERE `stockid` = 951 ORDER BY `minOrder` ASC [ RunTime:0.026072s ]
select * from pdf where partno='1393774-1' and brandshort='AXICOM - TE CONNECTIVITY' limit 1 [ RunTime:0.084820s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.004971s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1393774-1' OR `brand` LIKE 'AXICOM - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.045708s ]
SELECT `id` FROM `stock` WHERE `id` <> 951 AND `partno` = '1393774-1' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%axicom - te connectivity%' ) [ RunTime:0.045467s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 953 LIMIT 5 [ RunTime:0.050292s ]
SELECT * FROM `stock_price` WHERE `stockid` = 953 ORDER BY `minOrder` ASC [ RunTime:0.023934s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 953 ORDER BY `unit` DESC [ RunTime:0.053865s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 953 LIMIT 2 [ RunTime:0.042061s ]
SELECT * FROM `stock_price` WHERE `stockid` = 953 ORDER BY `minOrder` ASC [ RunTime:0.024226s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'RTE24024' OR `brand` LIKE 'SCHRACK - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.032259s ]
SELECT `id` FROM `stock` WHERE `id` <> 953 AND `partno` = 'RTE24024' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%schrack - te connectivity%' ) [ RunTime:0.066043s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13416 LIMIT 5 [ RunTime:0.057432s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13416 ORDER BY `minOrder` ASC [ RunTime:0.095556s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13416 ORDER BY `unit` DESC [ RunTime:0.043278s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13416 LIMIT 2 [ RunTime:0.037063s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13416 ORDER BY `minOrder` ASC [ RunTime:0.034957s ]
select * from pdf where partno='106529-2.' and brandshort='AMP - TE CONNECTIVITY' limit 1 [ RunTime:0.019063s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '106529-2.' OR `brand` LIKE 'AMP - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.045845s ]
SELECT `id` FROM `stock` WHERE `id` <> 13416 AND `partno` = '106529-2.' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%amp - te connectivity%' ) [ RunTime:0.030649s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6840 LIMIT 5 [ RunTime:0.029201s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6840 ORDER BY `minOrder` ASC [ RunTime:0.033628s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6840 ORDER BY `unit` DESC [ RunTime:0.008714s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6840 LIMIT 2 [ RunTime:0.009798s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6840 ORDER BY `minOrder` ASC [ RunTime:0.007506s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VO1400AEFTR' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.041026s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3600 LIMIT 5 [ RunTime:0.015159s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3600 ORDER BY `minOrder` ASC [ RunTime:0.015742s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3600 ORDER BY `unit` DESC [ RunTime:0.003410s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3600 LIMIT 2 [ RunTime:0.009643s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3600 ORDER BY `minOrder` ASC [ RunTime:0.004359s ]
select * from pdf where partno='PYC-A1.' and brandshort='OMRON INDUSTRIAL AUTOMATION' limit 1 [ RunTime:0.001568s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'PYC-A1.' OR `brand` LIKE 'OMRON INDUSTRIAL AUTOMATION%' ) ) LIMIT 1 [ RunTime:0.007964s ]
SELECT `id` FROM `stock` WHERE `id` <> 3600 AND `partno` = 'PYC-A1.' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%omron industrial automation%' ) [ RunTime:0.005295s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13397 LIMIT 5 [ RunTime:0.009293s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13397 ORDER BY `minOrder` ASC [ RunTime:0.000760s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13397 ORDER BY `unit` DESC [ RunTime:0.006607s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13397 LIMIT 2 [ RunTime:0.008806s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13397 ORDER BY `minOrder` ASC [ RunTime:0.001053s ]
select * from pdf where partno='G6K-2P DC5' and brandshort='OMRON ELECTRONIC COMPONENTS' limit 1 [ RunTime:0.001077s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'G6K-2P DC5' OR `brand` LIKE 'OMRON ELECTRONIC COMPONENTS%' ) ) LIMIT 1 [ RunTime:0.012221s ]
SELECT `id` FROM `stock` WHERE `id` <> 13397 AND `partno` = 'G6K-2P DC5' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%omron electronic components%' ) [ RunTime:0.002717s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 654 LIMIT 5 [ RunTime:0.004369s ]
SELECT * FROM `stock_price` WHERE `stockid` = 654 ORDER BY `minOrder` ASC [ RunTime:0.019730s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 654 ORDER BY `unit` DESC [ RunTime:0.005288s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 654 LIMIT 2 [ RunTime:0.015103s ]
SELECT * FROM `stock_price` WHERE `stockid` = 654 ORDER BY `minOrder` ASC [ RunTime:0.003071s ]
select * from pdf where partno='TX2-24V' and brandshort='PANASONIC' limit 1 [ RunTime:0.001942s ]
select foldpath,foldpath2,filename from pdf_file where id=1060653 limit 1 [ RunTime:0.009075s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TX2-24V' OR `brand` LIKE 'PANASONIC%' ) ) LIMIT 1 [ RunTime:0.024728s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 896 LIMIT 5 [ RunTime:0.017210s ]
SELECT * FROM `stock_price` WHERE `stockid` = 896 ORDER BY `minOrder` ASC [ RunTime:0.012312s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 896 ORDER BY `unit` DESC [ RunTime:0.014598s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 896 LIMIT 2 [ RunTime:0.010291s ]
SELECT * FROM `stock_price` WHERE `stockid` = 896 ORDER BY `minOrder` ASC [ RunTime:0.003579s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '62.82.8.230.0000' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.021342s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3980 LIMIT 5 [ RunTime:0.028933s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3980 ORDER BY `minOrder` ASC [ RunTime:0.036543s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3980 ORDER BY `unit` DESC [ RunTime:0.034914s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3980 LIMIT 2 [ RunTime:0.071726s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3980 ORDER BY `minOrder` ASC [ RunTime:0.009804s ]
select * from pdf where partno='6-1415537-5' and brandshort='TE CONNECTIVITY' limit 1 [ RunTime:0.006400s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '6-1415537-5' OR `brand` LIKE 'TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.028709s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 892 LIMIT 5 [ RunTime:0.020041s ]
SELECT * FROM `stock_price` WHERE `stockid` = 892 ORDER BY `minOrder` ASC [ RunTime:0.004258s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 892 ORDER BY `unit` DESC [ RunTime:0.015706s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 892 LIMIT 2 [ RunTime:0.022352s ]
SELECT * FROM `stock_price` WHERE `stockid` = 892 ORDER BY `minOrder` ASC [ RunTime:0.001357s ]
select * from pdf where partno='40.52.7.024.0000' and brandshort='FINDER' limit 1 [ RunTime:0.016074s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '40.52.7.024.0000' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.012090s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1132 LIMIT 5 [ RunTime:0.002849s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1132 ORDER BY `minOrder` ASC [ RunTime:0.003208s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1132 ORDER BY `unit` DESC [ RunTime:0.011183s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1132 LIMIT 2 [ RunTime:0.010276s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1132 ORDER BY `minOrder` ASC [ RunTime:0.009275s ]
select * from pdf where partno='TX2-5V' and brandshort='PANASONIC' limit 1 [ RunTime:0.004208s ]
select foldpath,foldpath2,filename from pdf_file where id=1152169 limit 1 [ RunTime:0.016699s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TX2-5V' OR `brand` LIKE 'PANASONIC%' ) ) LIMIT 1 [ RunTime:0.030013s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 954 LIMIT 5 [ RunTime:0.027356s ]
SELECT * FROM `stock_price` WHERE `stockid` = 954 ORDER BY `minOrder` ASC [ RunTime:0.015430s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 954 ORDER BY `unit` DESC [ RunTime:0.012718s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 954 LIMIT 2 [ RunTime:0.003150s ]
SELECT * FROM `stock_price` WHERE `stockid` = 954 ORDER BY `minOrder` ASC [ RunTime:0.011809s ]
select * from pdf where partno='1-1393243-8' and brandshort='SCHRACK - TE CONNECTIVITY' limit 1 [ RunTime:0.010504s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1-1393243-8' OR `brand` LIKE 'SCHRACK - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.003273s ]
SELECT `id` FROM `stock` WHERE `id` <> 954 AND `partno` = '1-1393243-8' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%schrack - te connectivity%' ) [ RunTime:0.010640s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 895 LIMIT 5 [ RunTime:0.019781s ]
SELECT * FROM `stock_price` WHERE `stockid` = 895 ORDER BY `minOrder` ASC [ RunTime:0.022614s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 895 ORDER BY `unit` DESC [ RunTime:0.067717s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 895 LIMIT 2 [ RunTime:0.060281s ]
SELECT * FROM `stock_price` WHERE `stockid` = 895 ORDER BY `minOrder` ASC [ RunTime:0.005652s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '94.82SMA' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.050308s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4761 LIMIT 5 [ RunTime:0.056106s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4761 ORDER BY `minOrder` ASC [ RunTime:0.080359s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4761 ORDER BY `unit` DESC [ RunTime:0.057964s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4761 LIMIT 2 [ RunTime:0.046652s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4761 ORDER BY `minOrder` ASC [ RunTime:0.050303s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'AGQ200S03Z' OR `brand` LIKE 'PANASONIC%' ) ) LIMIT 1 [ RunTime:0.107183s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1610 LIMIT 5 [ RunTime:0.113836s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1610 ORDER BY `minOrder` ASC [ RunTime:0.071738s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1610 ORDER BY `unit` DESC [ RunTime:0.072632s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1610 LIMIT 2 [ RunTime:0.099933s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1610 ORDER BY `minOrder` ASC [ RunTime:0.039721s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '32.21.7.005.2000' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.059072s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 901 LIMIT 5 [ RunTime:0.040401s ]
SELECT * FROM `stock_price` WHERE `stockid` = 901 ORDER BY `minOrder` ASC [ RunTime:0.021059s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 901 ORDER BY `unit` DESC [ RunTime:0.023561s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 901 LIMIT 2 [ RunTime:0.032319s ]
SELECT * FROM `stock_price` WHERE `stockid` = 901 ORDER BY `minOrder` ASC [ RunTime:0.023215s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '95.85.3SMA' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.014370s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 955 LIMIT 5 [ RunTime:0.042555s ]
SELECT * FROM `stock_price` WHERE `stockid` = 955 ORDER BY `minOrder` ASC [ RunTime:0.038071s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 955 ORDER BY `unit` DESC [ RunTime:0.039915s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 955 LIMIT 2 [ RunTime:0.031301s ]
SELECT * FROM `stock_price` WHERE `stockid` = 955 ORDER BY `minOrder` ASC [ RunTime:0.019827s ]
select * from pdf where partno='IM03TS' and brandshort='AXICOM - TE CONNECTIVITY' limit 1 [ RunTime:0.042529s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'IM03TS' OR `brand` LIKE 'AXICOM - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.018203s ]
SELECT `id` FROM `stock` WHERE `id` <> 955 AND `partno` = 'IM03TS' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%axicom - te connectivity%' ) [ RunTime:0.024525s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6682 LIMIT 5 [ RunTime:0.033968s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6682 ORDER BY `minOrder` ASC [ RunTime:0.039886s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6682 ORDER BY `unit` DESC [ RunTime:0.005887s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6682 LIMIT 2 [ RunTime:0.053047s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6682 ORDER BY `minOrder` ASC [ RunTime:0.011597s ]
select * from pdf where partno='EC2-5NU' and brandshort='KEMET' limit 1 [ RunTime:0.025185s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'EC2-5NU' OR `brand` LIKE 'KEMET%' ) ) LIMIT 1 [ RunTime:0.038090s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2978 LIMIT 5 [ RunTime:0.028915s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2978 ORDER BY `minOrder` ASC [ RunTime:0.113614s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2978 ORDER BY `unit` DESC [ RunTime:0.022973s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2978 LIMIT 2 [ RunTime:0.007977s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2978 ORDER BY `minOrder` ASC [ RunTime:0.005197s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'RT314024' OR `brand` LIKE 'SCHRACK - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.031313s ]
SELECT `id` FROM `stock` WHERE `id` <> 2978 AND `partno` = 'RT314024' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%schrack - te connectivity%' ) [ RunTime:0.031504s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 900 LIMIT 5 [ RunTime:0.038823s ]
SELECT * FROM `stock_price` WHERE `stockid` = 900 ORDER BY `minOrder` ASC [ RunTime:0.013778s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 900 ORDER BY `unit` DESC [ RunTime:0.027422s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 900 LIMIT 2 [ RunTime:0.022933s ]
SELECT * FROM `stock_price` WHERE `stockid` = 900 ORDER BY `minOrder` ASC [ RunTime:0.031156s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '38.51.7.024.0050' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.036934s ]
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` = '186' ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.028949s ]
SELECT brand, count(*) as count FROM ( SELECT `brand` FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND `s`.`categoryid` = '186' ) LIMIT 106 ) tmp GROUP BY `brand` [ RunTime:0.021345s ]