
String sql="insert into employee values(emp_seq.nextval,\'"+ename+"\',\'"+eadd+"\',\'"+ephone+"\',\'"+email+"\',\'"+department+"\',"+Integer.parseInt(ebpay)+",20,0)";
stm.executeUpdate(sql);
String sql1="insert into appusers values(emp_seq.nextval,\'"+ename+"\')";
stm.executeUpdate(sql);
---this is the code i have.But i need to perform insertion in both the tables i.e employee and appusers at the same time as i need the same sequense value in both the tables.
plzz help

You can execute two queries with two different Statement object in the following way. Another thing, you have executed same query twice in your code.
Statement st1=conn.createStatement(); String sql="insert into employee values(emp_seq.nextval,'"+ename+"','"+eadd+"','"+ephone+"','"+email+"','"+department+"',"+Integer.parseInt(ebpay)+",20,0)"; st1.executeUpdate(sql); Statement st2=conn.createStatement(); String sql1="insert into appusers values(emp_seq.nextval,'"+ename+"')"; st2.executeUpdate(sql1);
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.