select GREATEST(weekprice) as maxnum from table试试,MYSQL的

解决方案 »

  1.   

    错了 
    上面是求最大的
    最小值用:
    select LEAST(weekprice) as maxnum from table
      

  2.   

    你给的是正确的
    weekprice是字符串类型,可惜,报参数不正确
    incorrect parameter count in the call to native function least
      

  3.   

    select * from table order by weekprice limit 1 
      

  4.   

    http://dev.mysql.com/doc/refman/5.1/en/string-functions.html#c7380
    http://forums.mysql.com/read.php?60,78776,78776#msg-78776