SELECT Count(MAX(字段名)>9) from table
这个语句不能用,提示是"(conunt(MAX(字段名)>9))不能有统计函数"
哪我该怎么做啊?
有其他的方法吗
难道要自己写代码计算?

解决方案 »

  1.   

    conunt(字段名)>9 就可以了
    我晕了
      

  2.   

    SELECT Count(字段名)>9 from table
      

  3.   

    晚了...
    SELECT Count(字段名)>9 from table
      

  4.   

    SELECT Count(*) 
      FROM table 
     WHERE 字段名>9
      

  5.   

    SELECT Count(字段名)>9 from table
    这个语句可以满足你要的功能,不太可能吧
    你的意思不应该是表中字段的长度或者数值大于9的条目数目吧,请楼主把题的意思说清楚
      

  6.   

    select count(*) from table where length(字段)>9  字段为字符select count(*) from table where 字段>9  字段为数字分组统计select count(*) from table group by length(字段)>9  字段为字符select count(*) from table group by where 字段>9  字段为数字
    未必在回来看你的帖子,所以多留了点答案,希望有一个适合你