posted 22 years ago
Would you help me please find what is wrong with that?
query = "UPDATE caregiver SET" +
"(sex, firstname, lastname)" +
" VALUES(?,?,?)" +
" WHERE id = ?";
PreparedStatement preparedStatement= databaseConnection.prepareStatement( query );
preparedStatement.clearParameters();
preparedStatement.setString( 1, fields.sex.getText());
preparedStatement.setString( 2, fields.firstName.getText() );
preparedStatement.setString( 3, fields.lastName.getText() );
preparedStat
preparedStatement.setString( 4, fields.id.getText() );
result = preparedStatement.executeUpdate();