Oracle Update table

Source: Internet
Author: User
Tags table definition

Change the data in a table: 1, update a specific row;

2. Update all rows.

Note: When updating, be sure to add a where condition, otherwise update all row data in the table.

Format: Update a specific line: Updates table

Set table_xxx= ' aaaaaa '

where table_id= ' BB ';

Update multiple rows: Update table

Set table_xxx= ' aaaaaa ',

Table_city= ' CC ',


Table_name= ' DD '

where table_id= ' BB ';

Example: Update Customers

Set cust_email= ' [email protected] '

Where Cust_name= ' Yang '

To delete the value of a column in a table, set it to null (assuming that the table definition allows null values).

Update customers set cust_email= ' null ' where cust_name= ' yang '

Null is used to remove the value from the Cust_email column, and null indicates no value. And the string ' ' represents a value.

This article is from the "if you are in full bloom" blog, please be sure to keep this source

Oracle Update table

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.