Oracle Flashback Technologies-Flash back query

Source: Internet
Author: User
Tags select from where

Oracle Flashback Technologies-Flash back query

View the modified record of a row of data in a table

#创建一个表, and insert and modify data

Sql> CREATE TABLE Y3 (IDint, Name VARCHAR2 ( -)); Table created. SQL> INSERT into Y3 values (1,'Wahaha');1row created. SQL>commit; Commit complete. SQL> Update Y3SetName='Nongfushanquan' whereId=1;1row updated. SQL>commit; Commit complete. SQL> Update Y3SetName='Kaifei' whereId=1;1row updated. SQL>commit; Commit complete. SQL> Update Y3SetName='Pijiu' whereId=1;1row updated. SQL>commit; Commit complete. SQL> Update Y3SetName='Hongniu' whereId=1;1row updated. SQL>commit; Commit complete. SQL> Update Y3SetName='Kele' whereId=1;1row updated. SQL>commit; Commit complete. SQL>


#查询

#查询SQL>Select  2name,3Versions_starttime,4VERSIONS_STARTSCN,5Versions_endtime,6VERSIONS_ENDSCN,7Versions_xid,8versions_operation9    fromY3Tenversions between SCN MinValue and MaxValue One   whereID =1  AORDER BY3  -/NAME versions_starttime versions_startscn versions_endtime versions_endscn versions_xi D V-------------------- ------------------------- ----------------- ------------------------- --------------- --------- ------- -Wahaha at-jun- the 08.36. -Am1466318  at-jun- the 08.36. $Am1466333 0400200065030000Inongfushanquan at-jun- the 08.36. $Am1466333  at-jun- the 08.37. -Am14663470a00040015040000 Ukaifei at-jun- the 08.37. -Am1466347  at-jun- the 08.37. toAm1466355070018009d030000 Upijiu at-jun- the 08.37. toAm1466355  at-jun- the 08.37. theAm146636401000d0048030000 Uhongniu at-jun- the 08.37. theAm1466364  at-jun- the 08.39.GenevaAm146640002001b0021040000 Ukele at-jun- the 08.39.GenevaAm146640006000400dc040000 U6rows selected. SQL>

View statements

 Select from where13/

Oracle Flashback Technologies-Flash back query

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: info-contact@alibabacloud.com 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.