this is the code what I am using to insert the data. Is this the best way?
try
{
st = conect.createStatement();
sql_v = "insert into VENDEDORES(ID,name,firstlast_name,secondlast_name,phone,celphone) \n"
+ " values("+ID+",'name','fln','sln','ph','clp')";
st.executeUpdate(sql_v);
}
catch (Exception ex) {
JOptionPane.showMessageDialog(null,"","ERROR",JOptionPane.ERROR_MESSAGE);
}