简体   繁体   中英

ORACLE SQL Developer - see exact results of UPDATE statement?

Is there any way to see exact results of an executed update statement in SQL Developer instead of only number of rows updated? Of course before commiting the statement. I'd like to see what changes were made to rows affected by statement and which rows were affected, but I couldn't find a way to do it.

I dont think theres a way to get exactly what you want, ie, to see the exact results of an update statement.

Its almost always a good idea to run a select query with the same conditions in your WHERE clause of your update or delete statements to see the records that would be affected before running any non-trivial update or delete statements.

You could also use the SQL History tab (View (in the menu bar) -> SQL History or press F8) to see all the SQL thats been executed in the past. This works on Oracle SQL Developer version 3.1.xx

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