这个select句错在那里 MYSQL不支持子查询试一下:select article,pricefrom shopwhere price=max(price) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 二楼的肯定不正确。select article,price from shop group by price having price=max(price) 2楼的句子有问题3楼的结果是把price从小到大排列输出 天啦,试试这个:SELECT article,price FROM shop ORDER BY price DESC LIMIT 0,1MySQL手册上推荐的 select article,price from shop where price in(select max(price) from shop); 我试了这个:select article,price from shop where price in(select max(price) from shop);不行的说哦! 天啦,试试这个:SELECT article,price FROM shop ORDER BY price DESC LIMIT 0,1MySQL手册上推荐的---------试过这个了吗?我觉得这个是对的. to: mengling00 (菜心) 你到底想实现什么功能? SELECT article,price FROM shop ORDER BY price DESC LIMIT 0,1.是对的.另外mysql不支持子查询 mysql不同sql语言支持子查询,所以我也认为SELECT article,price FROM shop ORDER BY price DESC LIMIT 0,1是对的 以下怎么设计表比较合理呢?有合理的建议我再加分至100 mysql存储过程各位大侠帮帮忙! 若问mysql服务重启后数据丢失的问题 请教大大,window 2003下mysql如何支持24G内存 MySql安装出错。。来高手求救 left join 和not in效率问题? pg支持把远程的表映射到本地表么? mysql数据库中关于使用like进行模糊查询的问题 数据库间可以互为导出/导入数据吗? win98下的MYSQL的问题 为什么我建表的第一个字段不能延长长度?(肯定是简单间题,但我不会) 我想把数据存储在表里,用什么数据类型呢是不是LONGBLOB 型还是BLOB呢
select article,price from shop group by price having price=max(price)
3楼的结果是把price从小到大排列输出
SELECT article,price FROM shop ORDER BY price DESC LIMIT 0,1
MySQL手册上推荐的
SELECT article,price FROM shop ORDER BY price DESC LIMIT 0,1
MySQL手册上推荐的---------
试过这个了吗?我觉得这个是对的.
你到底想实现什么功能?
另外mysql不支持子查询
SELECT article,price FROM shop ORDER BY price DESC LIMIT 0,1
是对的