i'm using spring boot, i want to add new "champ", this is the code
Champ c = new Champ();
c.setOrder(1);
c.setType("RRRR");
c.setStructurenotification("#AA");
champservice.AddNewChamp(c);
the table "champ"
have fields : "idchamp", "structidstructurenotification" ,"type" and "order".
but i get this error
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
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 'order,
structidstructurenotification, type, idchamp)
values (1, '#AA', 'RRRR', 0' at line 1