| |

VerySource

 Forgot password?
 Register
Search
View: 870|Reply: 4

What type of statement needs to be committed? ? ?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-2 00:40:01
| Show all posts |Read mode
What type of statement needs to be committed? ? ?
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-3-18 08:00:01
| Show all posts
I am new and searched online. But just didn't find the answer.
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-18 12:15:01
| Show all posts
DML statement requires COMMIT
Reply

Use magic Report

0

Threads

71

Posts

50.00

Credits

Newbie

Rank: 1

Credits
50.00

 China

Post time: 2020-3-20 15:15:01
| Show all posts
If you do not commit, you will still see the old data in other sessions. After committing, you will see the new data.
Reply

Use magic Report

0

Threads

71

Posts

50.00

Credits

Newbie

Rank: 1

Credits
50.00

 China

Post time: 2020-3-20 19:15:01
| Show all posts
For example:

SQL> conn dbmgr @ stg_bj
Connected to Oracle8i Enterprise Edition Release 8.1.7.4.0
Connected as dbmgr

SQL> create table test000 (userpay number);

Table created

SQL> insert into test000 values ​​(5000);

1 row inserted

SQL> create public synonym test000 for dbmgr.test000;

Synonym created

SQL> grant select on test000 to system;

Grant succeeded

SQL> commit;

Commit complete

SQL> update test000 set userpay = 8000;

1 row updated

SQL> commit;

Commit complete

Before commit, the system user:
SQL> select * from test000;

   USERPAY
----------
      5000

After commit, the system user:
SQL> select * from test000;

   USERPAY
----------
      8000
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list