我想将数据写在 表中的某一列上,应该怎么写? public void inputAuthor(String Author) throws Exception{
st.execute("insert into bbs_1 (name) values"+"("+"\'"+Author+"\'");
//insert into users (login_id,login_pwd) value
con.close();
}
我这么做为什么错了呢???在线等
st.execute("insert into bbs_1 (name) values"+"("+"\'"+Author+"\'");
//insert into users (login_id,login_pwd) value
con.close();
}
我这么做为什么错了呢???在线等
st.execute("insert into bbs_1 (name) values ("+Author+")");
你原来的那个肯定是错误的,因为少了半个).
你好,我按照你的修改了一下,错误改为:Column count doesn't match value count at row 1这是什么原因造成的?