Update statements.
- From: "morc" <questionmarc420@xxxxxxx>
- Date: 25 May 2006 07:45:30 -0700
hey im having a little bit of trouble excecuting my update statsments.
I chekd in access directly and am sure that there is no errors in my
SQL.
this is the code i used. The connection is fine its been tested before.
String remove = "UPDATE items SET qty = qty - 1 WHERE store =
'"+from+"' and barcode ='"+barcode+"'";
Statement stmt = null;
try {
stmt = conn01.createStatement();
stmt.executeUpdate(remove);
} catch (SQLException e) {
e.printStackTrace();
}
If anyone knows what the error is it would be greatly appreciated.
thanks
-morc
.
- Follow-Ups:
- Re: Update statements.
- From: David Harper
- Re: Update statements.
- From: ChrisH
- Re: Update statements.
- Prev by Date: Re: Connecting to MS Access Using Java
- Next by Date: Re: Update statements.
- Previous by thread: Connecting to MS Access Using Java
- Next by thread: Re: Update statements.
- Index(es):
Relevant Pages
|
|