Home> Database> Oracle> body text

How to modify table values in oracle

WBOY
Release: 2022-03-01 11:41:59
Original
8309 people have browsed it

In Oracle, you can use the Update statement to modify the values in the table. This statement is used to modify the data in the table. The syntax is "UPDATE table name SET column name = new value WHERE column name = condition value".

How to modify table values ​​in oracle

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

How oracle modifies the value of the table

Command update set: Modify the data in the table

The update set command is used to modify the data in the table.

update set command format:

update 表名 set 字段=新值,… where 条件;
Copy after login

Common operations for data in Oracle database tables

Query all data in the table

select * from 表名; 例:select * from stu;
Copy after login

Modify the data in the table while querying

The
select * from 表名 for update;
Copy after login

Update statement is used to modify the data in the table.

Grammar:

UPDATE 表名称 SET 列名称 = 新值 WHERE 列名称 = 某值
Copy after login

1 Modify the data in the table: UPDATE statement:

Grammar:

UPDTAE table_name SET column1 = value1,... [WHERE conditions]
Copy after login

Recommended tutorial: "Oracle Video Tutorial

The above is the detailed content of How to modify table values in oracle. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!