Insert into mysql with preparedstatement not working

QuestionsInsert into mysql with preparedstatement not working
sethbeckerman5 Staff asked 4 years ago

I'm trying to insert data into my mysql table using java, but I really can't.
I'm using PreparedStatement class to do my insertion and it seems like the '?' is not beeing changed by my variable or something like that.
So follow my code:

and the error I'm getting:

I really can't understand what is going wrong with my code and I'll be very thankfull if someone could help me.


View on Stack Overflow