I am trying to get some information of a website into an access database. I am creating a bean out of the information I get of the website and then send that bean into the database. the problem is that I've been blocked getting certain things into the database by an exception. the exception -
net.ucanaccess.jdbc.UcanaccessSQLException: unexpected token: (token) required:
so ive checked whats in common with the values that are generating this exception. its an apostrophe. Every value that is calling an exception has an apostrophe in it and I can't really change it for now. so I've been wondering how do I make ucanaccess get that apostrophe into access without any exceptions?
this is the query statement
stmnt = conn.prepareStatement("INSERT INTO Table1(doctorName , description , specialty1 , specialty2 , personalSite , clinic1 , phone1 , clinic2 , phone2 , clinic3, phone3 ,worksWith) VALUES (?,?,?,?,?,?,?,?,?,?,?,?");
stmnt.setString(1,tempBean.getDoctorName());
stmnt.setString(2,tempBean.getDescription());
stmnt.setString(3,tempBean.getSpeciality1());
stmnt.setString(4,tempBean.getSpeciality2());
stmnt.setString(5,tempBean.getPersonalSite());
stmnt.setString(6,tempBean.getClinic1());
stmnt.setString(7,tempBean.getPhone1());
stmnt.setString(8,tempBean.getClinic2());
stmnt.setString(9,tempBean.getPhone2());
stmnt.setString(10,tempBean.getClinic3());
stmnt.setString(11,tempBean.getPhone3());
stmnt.setString(12,tempBean.getWorksWith());
stmnt.executeUpdate();