I am trying to use to insert into the table but got the exception that array index out of bounds ?
Please give me the idea how to do that and where is I am making mistake? I have tried many conversion but doesn't get succeeded.
Following is the code
Object[]param={ID,name,Fathername,Address,Mob,Gender,Qualification};
try{
db=Display.getInstance().openOrCreate("students.db");
db.execute("insert into clStudent values('?','?','?',?,'?','?','?')", (Object[]) param) ;
You should drop the single quotes around the question marks in your query string.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With