Im trying to make an application that can cooperate with database i made and i get this problem which works in each my class but in one i get SQLException: [h=1]ORA 00917 Missing a comma[/h]
my statement:
static Statement stmt;
String insertString1 = "insert into SALARY values("+i+" , "+s1+" , "+s2+" , '"+s3+"' , "+s4+",)";
stmt.executeUpdate(insertString1);
where i,s1,s2,s4 are integer and s3 is varchar
can any1 tell me where the hell i have to put this comma??!?!?!


Sign In
Create Account


Back to top









