我正在使用以下代码,它给了我一个错误提示you have an error in mysql syntax
。会有什么问题?
public void Saved()
{
try {
String sql="insert into std(ADM_NO,Form,Student,Parent,Contact)values(?,?,?,?,?)";
ps=conn.prepareStatement(sql);
ps.setString(1, txtadm.getText());
ps.setString(2, txtform.getText());
ps.setString(3, txtsname.getText());
ps.setString(4, txtpname.getText());
ps.setString(5, txtmobileno.getText());
ps.execute();