血本求助,快来呀,愁死我了,如果再解决不了的话,我就死定了。
try{
Connection con=DriverManager.getConnection("jdbc:odbc:gongzibiao");
PreparedStatement pstmt=con.prepareStatement("update gongzitable set 姓名=?,年=?,月=?,日=? 年龄=?where 姓名=?,年=?,月=?,日");
pstmt.setString(jTextField1.getText());
pstmt.setString(jComboBox1.getSelectedItem().toString());
目的,当改动这四项中的某一项或是几项时,用update语句把更改后的内容覆盖原来的内容,是这一行的内容呀,而不是所有列,具体是不是这么实现的?我用的是access和jbuilder6.0呀!最好是一些代码,快快!