MYSQL不支持子查询
试一下:
select article,price
from shop
where price=max(price)

解决方案 »

  1.   

    二楼的肯定不正确。
    select article,price from shop group by price having price=max(price)
      

  2.   

    2楼的句子有问题
    3楼的结果是把price从小到大排列输出
      

  3.   

    天啦,试试这个:
    SELECT article,price FROM shop ORDER BY price DESC LIMIT 0,1
    MySQL手册上推荐的
      

  4.   

    select article,price from shop where price in(select max(price) from shop);
      

  5.   

    我试了这个:select article,price from shop where price in(select max(price) from shop);不行的说哦!
      

  6.   

    天啦,试试这个:
    SELECT article,price FROM shop ORDER BY price DESC LIMIT 0,1
    MySQL手册上推荐的---------
    试过这个了吗?我觉得这个是对的.
      

  7.   

    to:  mengling00 (菜心) 
     
    你到底想实现什么功能?
      

  8.   

    SELECT article,price FROM shop ORDER BY price DESC LIMIT 0,1.是对的.
    另外mysql不支持子查询
      

  9.   

    mysql不同sql语言支持子查询,所以我也认为
    SELECT article,price FROM shop ORDER BY price DESC LIMIT 0,1
    是对的