Hi abhit
i am charith this is my first post at p2p .I am sure that i can help u with this if you provide me some details .Some part of u'r quection is not clear. Tell me your requirmant suerly i will help
by the way i have included the method i use for a single insertion in database.
Normally i use like this
Connection con;
PreparedStatement prst=null;
con = ConnectionManager.getConnection(this);
String sSql = "INSERT INTO employee(emp_no, emp_fname, emp_mname, emp_sname, emp_address,phoneno)VALUES (?,?,?,?,?,?)";
prst.setString(1, getEmployeeNo());
prst.setString(2, getEmpoyeeFName());
prst.setString(3, getEmpoyeeMName());
prst.setString(4, getEmpoyeeLName());
prst.setString(5, getEmpoyeeAddress());
prst.setInt(6, getEmpoyeeTel().intValue());
prst.executeUpdate();
bye
Charith
:)
|