How To Update Values in a Table in Oracle?
Submitted by: AdministratorIf you want to update some values in one row or multiple rows in a table, you can use the UPDATE statement. The script below shows a good example:
UPDATE ggl_links SET counts = 999, notes = 'Good site.'
WHERE id = 101;
1 row updated.
SELECT * FROM ggl_links WHERE id = 101;
<pre> ID URL NOTES COUNTS CREATED
---- ------------------------ ---------- ------ ---------
101 http://www.globalguideline.com Good site. 999 07-MAY-06</pre>
Submitted by: Administrator
UPDATE ggl_links SET counts = 999, notes = 'Good site.'
WHERE id = 101;
1 row updated.
SELECT * FROM ggl_links WHERE id = 101;
<pre> ID URL NOTES COUNTS CREATED
---- ------------------------ ---------- ------ ---------
101 http://www.globalguideline.com Good site. 999 07-MAY-06</pre>
Submitted by: Administrator
Read Online Oracle Database Job Interview Questions And Answers
Top Oracle Database Questions
☺ | How To Use Values from Other Tables in UPDATE Statements using Oracle? |
☺ | What Happens to Indexes If You Drop a Table? |
☺ | How To Recover a Dropped Table in Oracle? |
☺ | How To Create Tables for ODBC Connection Testing? |
☺ | How To Retrieve Data from an Explicit Cursor? |
Top DB Oracle Categories
☺ | Oracle PL-SQL Interview Questions. |
☺ | Oracle DBA Interview Questions. |
☺ | Oracle D2K Interview Questions. |
☺ | OCI Interview Questions. |
☺ | Oracle RMAN Interview Questions. |