简体   繁体   中英

Oracle DB update using terminal doesn't work

Im trying to update date on my oracle DB but when I do it using my terminal it doesn't work this is the code that I use:

UPDATE INVESTIGATOR SET CODE = 'LMA' WHERE NUMCHARACTER=8;

But when I do it using my Oracle SQL Developers via the interface it works and this is the code generated:

UPDATE "MADJID"."INVESTIGATOR" SET CODE = 'LIA' 
WHERE ROWID = 'AAATjEAAQAAAAFUAAH' AND ORA_ROWSCN = '3120887'

I don't understand what is ROWID and ORA_ROWSCN? and why the first code doesn't work?

"Doesn't work" isn't exactly an error message. What does it mean? Did Oracle report any error? If so, which one?

Because, as far as we know, UPDATE failed because there are no rows in investigator table whose numcharacter column is equal to 8 .


What generated the 2nd code you posted? How come LMA become LIA ? These are two different strings, I doubt that any tool is capable of doing that.

ORA_ROWSCN

For each row, ORA_ROWSCN returns the conservative upper bound system change number (SCN) of the most recent change to the row.

ROWID

For each row in the database, the ROWID pseudocolumn returns the address of the row

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM