com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'username' in 'where clause'

解决方案 »

  1.   

    clause这个表没有username这个字段吧
      

  2.   

    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'username' in 'where clause'sql语句有错,木有username这个字段。是不是你用group by查询,然后group by后面没有username,但是select后面却有username??把你sql贴出来看看。。