java连接MySQL数据库问题

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'database='88' where id='1001'' at line 1

代码:mystatement.executeUpdate("update student set math='"+math+"' ,english='"+english+"', computer='"+computer+"' ,database='"+database+"' "+" where id='"+ID+"'");

database是关键字,需要转义
另外确认id类型是字符串么

'database='88' where id='1001'',这附近语法有问题。

database是关键字,需要转义
另外确认id类型是字符串么