Re: update SQL
Greg Griffiths <[email protected]> Thu, 13 Feb 2003 21:51:27 +0000
| Newsgroups | gmane.comp.db.oracle.devel |
|---|---|
| Message-ID | <LYRIS-1796914-873257-2003.02.13-22.04.52--gcdod-oracle#[email protected]> |
This looks more like a SELECT statement starting with the word UPDATE than an Oracle update statement, check the syntx, I think that you can only do a single table per query : UPDATE <table name> SET <fieldname1> = <fieldvalue1> , <fieldname n> = <fieldvalue n> WHERE <fieldname1> = <fieldvalue1> , <fieldname n> = <fieldvalue n> At 19:03 13/02/03 +0000, you wrote: >Hi, >I have one problem while executing the update statement as per my >knowledge it should in the SQL server/ sybase but not sure about Oracle >and its not working Can anybody can help me : >Here is my update statement > > >UPDATE PS_PAYMENT SET ADJUST = 'N', user_login_track_id = 1, >payment_status_id = 1 FROM PS_PAYMENT PS,PS_PAYMENT_NETTED NET WHERE >NET.PAYMENT_ID = PS.PAYMENT_ID AND NET.PAYMENT_NETTED_ID = 4 > > >error is : >ERROR at line 1: >ORA-00933: SQL command not properly ended > >I will appreciate for quick reply. > >Thanks >Manish >--- >Change your mail options at http://p2p.wrox.com/manager.asp or >to unsubscribe send a blank email to %%email.unsub%%. --- Change your mail options at http://p2p.wrox.com/manager.asp or to unsubscribe send a blank email to [email protected].