performing following query in java script
String sql = "insert into personal values('"+models.getResourceId()+"','"+models.getFname()+"','"+models.getMname()+"','"+models.getLname()+"','"+models.getGender()+"','"+models.getDob()+"','"+models.getFthname()+"','"+models.getEmail()+"','"+models.getMobile_no()+"')";
i don’t know what to correct.
the query is in DB2
You should use parameter binding. Give us the whole sql after you put it together. You likely used a
'in one of the other variables and didn’t escape that one.Are you sure that you are using javascript for accessing the database? I’m not aware of such a driver/possiblity. And it would be new to me that javascript knows types like
String.