Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the writing of the oracle update statement?

Shulou Source: shulou.com Published: 2022-06-01 03:21:40 10月03日 Update

Today, I will talk to you about how to write oracle update sentences, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

The writing of the association of two tables in update includes word query

1.update T2 set parentid= (select ownerid from T1 where t1.id=t2.id)

two。

Update tb_client_win_lost_report a set a.rolling_code_id=2

Where game_code_id=70000

And exists

(select'x 'from (select a.id)

From (select id,level_ from tb_admin_role connect by prior id=parent_id start with id= 1) a

(select lv_id from tb_rolling_plan where rolling_code_id = 2 and game_code_id=70000) b

Where b.lv_id=a.id) c where a.role_id=c.id)

And rolling_code_id=1

3.

Update (select rolling_code_id from tb_client_win_lost_report a minute temptation rolekeeper id b

Where a.role_id=b.id

And rolling_code_id=1) a set a.rolling_code_id=2

4.

Update tb_client_win_lost_report a set a.rolling_code_id=2

Where game_code_id=70000

And exists

(select 'x' from (select id from temp_role_id) c where a.role_id=c.id)

And rolling_code_id=1

And rownum

Tags: Writing content statements multiple fields more knowledge articles industry information information channels channels enter one relevance support related query Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology vpn Xiaomi macOS MySQL