Get the App
SLTechnology News&Howtos  ›  Database  › 

Oracle data update explanation

Shulou Source: shulou.com Published: 2022-06-01 18:51:32 10月06日 Update

(1) update one column: update T_Person set Age=30 (2) update multiple columns: update T_Person set Age=30,Name='Tom' (3) update part of the data: update T_Person set Age=30 where Name='Tom', uses where statement to update only rows where Name is' Tom', note that SQL equals to judge with a single =, not = =. (4) complex logic judgment can also be used in where: update T_Person set Age=30 where Name='Tom' or Age=,), etc.

Original address: http://bbs.delit.cn/thread-156-1-1.html

Please indicate the source of the reprint:

Written by: measurement Technology http://www.delit.cn

Tags: Updates logic data complexity provenance single original text address multiple science and technology statements operators clocks operations Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL NVidia macOS Microsoft Shulou Tech Info