解决方案 »

  1.   

    SELECT * FROM BIAO WHERE BIAO.POINTS > 6
      

  2.   

    select * from tb where points>6;
      

  3.   

    select uname,sum(points) from tb
    group by uname 
    having sum(points) > 6
      

  4.   

    SELECT  uname,sum( points) as total FROM `tab_name` WHERE tatol >6   group by uname ;
      

  5.   

    select uname
    from table1
    group by uname 
    having sum(points) >= 6
      

  6.   

    SELECT  uname,sum( points) as total FROM `tab_name` WHERE tatol >6   group by uname ;
    这个执行报错啊Unknown column 'tatol' in 'where clause' select uname
    from table1
    group by uname 
    having sum(points) >= 6 
    这个执行的话后面还能跟条件吗  比如 tag=0
      

  7.   

    select uname
    from table1
    where tag=0
    group by uname 
    having sum(points) >= 6 
      

  8.   


    我试了一下,结果只是给出了points>6 的用户,并没有给出和大于6的用户。请问你得出的结果是正确的吗