SHOW FULL COLUMNS FROM `visit_log` [ RunTime:0.004522s ]
INSERT INTO `visit_log` SET `ip` = '216.73.217.116' , `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=186' [ RunTime:0.023571s ]
SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002275s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.062296s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002481s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.217.116' ) [ RunTime:0.007325s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002345s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.074288s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 186 [ RunTime:0.010393s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 186 LIMIT 1 [ RunTime:0.008297s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002595s ]
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.048470s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.007548s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 951 LIMIT 5 [ RunTime:0.005145s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001246s ]
SELECT * FROM `stock_price` WHERE `stockid` = 951 ORDER BY `minOrder` ASC [ RunTime:0.022111s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.016647s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 951 ORDER BY `unit` DESC [ RunTime:0.014439s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001336s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 951 LIMIT 2 [ RunTime:0.014012s ]
SELECT * FROM `stock_price` WHERE `stockid` = 951 ORDER BY `minOrder` ASC [ RunTime:0.006393s ]
select * from pdf where partno='1393774-1' and brandshort='AXICOM - TE CONNECTIVITY' limit 1 [ RunTime:0.001765s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002533s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1393774-1' OR `brand` LIKE 'AXICOM - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.023539s ]
SELECT `id` FROM `stock` WHERE `id` <> 951 AND `partno` = '1393774-1' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%axicom - te connectivity%' ) [ RunTime:0.020813s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 953 LIMIT 5 [ RunTime:0.006920s ]
SELECT * FROM `stock_price` WHERE `stockid` = 953 ORDER BY `minOrder` ASC [ RunTime:0.013415s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 953 ORDER BY `unit` DESC [ RunTime:0.022248s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 953 LIMIT 2 [ RunTime:0.060996s ]
SELECT * FROM `stock_price` WHERE `stockid` = 953 ORDER BY `minOrder` ASC [ RunTime:0.008444s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'RTE24024' OR `brand` LIKE 'SCHRACK - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.013078s ]
SELECT `id` FROM `stock` WHERE `id` <> 953 AND `partno` = 'RTE24024' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%schrack - te connectivity%' ) [ RunTime:0.021847s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13416 LIMIT 5 [ RunTime:0.002658s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13416 ORDER BY `minOrder` ASC [ RunTime:0.024615s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13416 ORDER BY `unit` DESC [ RunTime:0.010674s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13416 LIMIT 2 [ RunTime:0.032380s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13416 ORDER BY `minOrder` ASC [ RunTime:0.004878s ]
select * from pdf where partno='106529-2.' and brandshort='AMP - TE CONNECTIVITY' limit 1 [ RunTime:0.009045s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '106529-2.' OR `brand` LIKE 'AMP - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.012768s ]
SELECT `id` FROM `stock` WHERE `id` <> 13416 AND `partno` = '106529-2.' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%amp - te connectivity%' ) [ RunTime:0.012342s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6840 LIMIT 5 [ RunTime:0.008547s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6840 ORDER BY `minOrder` ASC [ RunTime:0.029438s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6840 ORDER BY `unit` DESC [ RunTime:0.017477s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6840 LIMIT 2 [ RunTime:0.004248s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6840 ORDER BY `minOrder` ASC [ RunTime:0.018845s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'VO1400AEFTR' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.007807s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3600 LIMIT 5 [ RunTime:0.004868s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3600 ORDER BY `minOrder` ASC [ RunTime:0.028730s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3600 ORDER BY `unit` DESC [ RunTime:0.004770s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3600 LIMIT 2 [ RunTime:0.009633s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3600 ORDER BY `minOrder` ASC [ RunTime:0.006534s ]
select * from pdf where partno='PYC-A1.' and brandshort='OMRON INDUSTRIAL AUTOMATION' limit 1 [ RunTime:0.001290s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'PYC-A1.' OR `brand` LIKE 'OMRON INDUSTRIAL AUTOMATION%' ) ) LIMIT 1 [ RunTime:0.005055s ]
SELECT `id` FROM `stock` WHERE `id` <> 3600 AND `partno` = 'PYC-A1.' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%omron industrial automation%' ) [ RunTime:0.012782s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13397 LIMIT 5 [ RunTime:0.002976s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13397 ORDER BY `minOrder` ASC [ RunTime:0.005640s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13397 ORDER BY `unit` DESC [ RunTime:0.015534s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13397 LIMIT 2 [ RunTime:0.003897s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13397 ORDER BY `minOrder` ASC [ RunTime:0.000555s ]
select * from pdf where partno='G6K-2P DC5' and brandshort='OMRON ELECTRONIC COMPONENTS' limit 1 [ RunTime:0.004860s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'G6K-2P DC5' OR `brand` LIKE 'OMRON ELECTRONIC COMPONENTS%' ) ) LIMIT 1 [ RunTime:0.003911s ]
SELECT `id` FROM `stock` WHERE `id` <> 13397 AND `partno` = 'G6K-2P DC5' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%omron electronic components%' ) [ RunTime:0.017097s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 654 LIMIT 5 [ RunTime:0.007058s ]
SELECT * FROM `stock_price` WHERE `stockid` = 654 ORDER BY `minOrder` ASC [ RunTime:0.017651s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 654 ORDER BY `unit` DESC [ RunTime:0.001005s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 654 LIMIT 2 [ RunTime:0.003933s ]
SELECT * FROM `stock_price` WHERE `stockid` = 654 ORDER BY `minOrder` ASC [ RunTime:0.003495s ]
select * from pdf where partno='TX2-24V' and brandshort='PANASONIC' limit 1 [ RunTime:0.004928s ]
select foldpath,foldpath2,filename from pdf_file where id=1060653 limit 1 [ RunTime:0.000597s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TX2-24V' OR `brand` LIKE 'PANASONIC%' ) ) LIMIT 1 [ RunTime:0.001208s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 896 LIMIT 5 [ RunTime:0.003634s ]
SELECT * FROM `stock_price` WHERE `stockid` = 896 ORDER BY `minOrder` ASC [ RunTime:0.014171s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 896 ORDER BY `unit` DESC [ RunTime:0.012218s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 896 LIMIT 2 [ RunTime:0.017773s ]
SELECT * FROM `stock_price` WHERE `stockid` = 896 ORDER BY `minOrder` ASC [ RunTime:0.006081s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '62.82.8.230.0000' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.002388s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3980 LIMIT 5 [ RunTime:0.006943s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3980 ORDER BY `minOrder` ASC [ RunTime:0.007575s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3980 ORDER BY `unit` DESC [ RunTime:0.007981s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3980 LIMIT 2 [ RunTime:0.001396s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3980 ORDER BY `minOrder` ASC [ RunTime:0.015919s ]
select * from pdf where partno='6-1415537-5' and brandshort='TE CONNECTIVITY' limit 1 [ RunTime:0.004489s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '6-1415537-5' OR `brand` LIKE 'TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.007791s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 892 LIMIT 5 [ RunTime:0.000785s ]
SELECT * FROM `stock_price` WHERE `stockid` = 892 ORDER BY `minOrder` ASC [ RunTime:0.004573s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 892 ORDER BY `unit` DESC [ RunTime:0.003238s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 892 LIMIT 2 [ RunTime:0.002931s ]
SELECT * FROM `stock_price` WHERE `stockid` = 892 ORDER BY `minOrder` ASC [ RunTime:0.007079s ]
select * from pdf where partno='40.52.7.024.0000' and brandshort='FINDER' limit 1 [ RunTime:0.003633s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '40.52.7.024.0000' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.000538s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1132 LIMIT 5 [ RunTime:0.000602s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1132 ORDER BY `minOrder` ASC [ RunTime:0.004928s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1132 ORDER BY `unit` DESC [ RunTime:0.006392s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1132 LIMIT 2 [ RunTime:0.000460s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1132 ORDER BY `minOrder` ASC [ RunTime:0.001617s ]
select * from pdf where partno='TX2-5V' and brandshort='PANASONIC' limit 1 [ RunTime:0.001822s ]
select foldpath,foldpath2,filename from pdf_file where id=1152169 limit 1 [ RunTime:0.006973s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TX2-5V' OR `brand` LIKE 'PANASONIC%' ) ) LIMIT 1 [ RunTime:0.000523s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 954 LIMIT 5 [ RunTime:0.003196s ]
SELECT * FROM `stock_price` WHERE `stockid` = 954 ORDER BY `minOrder` ASC [ RunTime:0.029308s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 954 ORDER BY `unit` DESC [ RunTime:0.009102s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 954 LIMIT 2 [ RunTime:0.026435s ]
SELECT * FROM `stock_price` WHERE `stockid` = 954 ORDER BY `minOrder` ASC [ RunTime:0.005036s ]
select * from pdf where partno='1-1393243-8' and brandshort='SCHRACK - TE CONNECTIVITY' limit 1 [ RunTime:0.005141s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1-1393243-8' OR `brand` LIKE 'SCHRACK - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.008000s ]
SELECT `id` FROM `stock` WHERE `id` <> 954 AND `partno` = '1-1393243-8' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%schrack - te connectivity%' ) [ RunTime:0.001350s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 895 LIMIT 5 [ RunTime:0.000907s ]
SELECT * FROM `stock_price` WHERE `stockid` = 895 ORDER BY `minOrder` ASC [ RunTime:0.004193s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 895 ORDER BY `unit` DESC [ RunTime:0.016075s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 895 LIMIT 2 [ RunTime:0.009823s ]
SELECT * FROM `stock_price` WHERE `stockid` = 895 ORDER BY `minOrder` ASC [ RunTime:0.015961s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '94.82SMA' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.018521s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4761 LIMIT 5 [ RunTime:0.019703s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4761 ORDER BY `minOrder` ASC [ RunTime:0.014463s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4761 ORDER BY `unit` DESC [ RunTime:0.024039s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4761 LIMIT 2 [ RunTime:0.016949s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4761 ORDER BY `minOrder` ASC [ RunTime:0.019543s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'AGQ200S03Z' OR `brand` LIKE 'PANASONIC%' ) ) LIMIT 1 [ RunTime:0.020549s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1610 LIMIT 5 [ RunTime:0.002289s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1610 ORDER BY `minOrder` ASC [ RunTime:0.004090s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1610 ORDER BY `unit` DESC [ RunTime:0.004565s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1610 LIMIT 2 [ RunTime:0.001506s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1610 ORDER BY `minOrder` ASC [ RunTime:0.000534s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '32.21.7.005.2000' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.001753s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 901 LIMIT 5 [ RunTime:0.000707s ]
SELECT * FROM `stock_price` WHERE `stockid` = 901 ORDER BY `minOrder` ASC [ RunTime:0.007126s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 901 ORDER BY `unit` DESC [ RunTime:0.005760s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 901 LIMIT 2 [ RunTime:0.003429s ]
SELECT * FROM `stock_price` WHERE `stockid` = 901 ORDER BY `minOrder` ASC [ RunTime:0.000528s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '95.85.3SMA' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.002324s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 955 LIMIT 5 [ RunTime:0.001717s ]
SELECT * FROM `stock_price` WHERE `stockid` = 955 ORDER BY `minOrder` ASC [ RunTime:0.002175s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 955 ORDER BY `unit` DESC [ RunTime:0.003200s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 955 LIMIT 2 [ RunTime:0.009395s ]
SELECT * FROM `stock_price` WHERE `stockid` = 955 ORDER BY `minOrder` ASC [ RunTime:0.000534s ]
select * from pdf where partno='IM03TS' and brandshort='AXICOM - TE CONNECTIVITY' limit 1 [ RunTime:0.001808s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'IM03TS' OR `brand` LIKE 'AXICOM - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.004696s ]
SELECT `id` FROM `stock` WHERE `id` <> 955 AND `partno` = 'IM03TS' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%axicom - te connectivity%' ) [ RunTime:0.005914s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6682 LIMIT 5 [ RunTime:0.000624s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6682 ORDER BY `minOrder` ASC [ RunTime:0.000704s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6682 ORDER BY `unit` DESC [ RunTime:0.001794s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6682 LIMIT 2 [ RunTime:0.006903s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6682 ORDER BY `minOrder` ASC [ RunTime:0.006142s ]
select * from pdf where partno='EC2-5NU' and brandshort='KEMET' limit 1 [ RunTime:0.004596s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'EC2-5NU' OR `brand` LIKE 'KEMET%' ) ) LIMIT 1 [ RunTime:0.004497s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2978 LIMIT 5 [ RunTime:0.000656s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2978 ORDER BY `minOrder` ASC [ RunTime:0.000911s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2978 ORDER BY `unit` DESC [ RunTime:0.006565s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2978 LIMIT 2 [ RunTime:0.004818s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2978 ORDER BY `minOrder` ASC [ RunTime:0.001645s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'RT314024' OR `brand` LIKE 'SCHRACK - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.016105s ]
SELECT `id` FROM `stock` WHERE `id` <> 2978 AND `partno` = 'RT314024' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%schrack - te connectivity%' ) [ RunTime:0.025013s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 900 LIMIT 5 [ RunTime:0.007651s ]
SELECT * FROM `stock_price` WHERE `stockid` = 900 ORDER BY `minOrder` ASC [ RunTime:0.018612s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 900 ORDER BY `unit` DESC [ RunTime:0.023916s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 900 LIMIT 2 [ RunTime:0.014173s ]
SELECT * FROM `stock_price` WHERE `stockid` = 900 ORDER BY `minOrder` ASC [ RunTime:0.007878s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '38.51.7.024.0050' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.022090s ]
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.018263s ]
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.018764s ]