tags:

views:

6

answers:

0

I wanted to insert a row to my table and using SqlReplacer in org.j2sos.shine.jconnection.SQLReplacer
I wrote this code but it doesnt work.anybody knows how to fix it?

JDBC j = new JDBC();
if(j.login("oracle.jdbc.driver.OracleDriver","jdbc:oracle:thin:@localhost:1521:J2OS","username","pass",true))
{
SQLReplacer rsql = new SQLReplacer();
rsql.setSQL("INSERT INTO PHONE_BOOK VALUES(=?,=?,=?)");
 rsql.setLogicField(id+"");
  rsql.setCharField(name);
  rsql.setCharField(phoneNum);
}
j.commit();