Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 New features  



1.1  Support in database management systems  







2 See also  





3 References  





4 External links  














SQL:2011






فارسی
Français

Norsk bokmål
Українська
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


SQL:2011orISO/IEC 9075:2011 (under the general title "Information technology – Database languages – SQL") is the seventh revision of the ISO (1987) and ANSI (1986) standard for the SQL database query language. It was formally adopted in December 2011.[1] The standard consists of 9 parts which are described in detail in SQL. The next version is SQL:2016.

New features

[edit]

One of the main new features is improved support for temporal databases.[2][3] Language enhancements for temporal data definition and manipulation include:

Support in database management systems

[edit]

SAP HANA 2.0 SP03 supports system-versioned tables[4] using the standard select syntax FOR SYSTEM_TIME AS OF '<timestamp1>'[5] SAP HANA 2.0 SP04 adds (partial) support for application-time versioning [6]

IBM DB2 version 10 claims to be the first database to have a conforming implementation of this feature in what they call "Time Travel Queries",[7][8] although they use the alternative syntax FOR SYSTEM_TIME AS OF.

Oracle Oracle 12c supports temporal functionality in compliance with SQL:2011.[9] Versions 10g and 11g implement the time-sliced queries in what they call Flashback Queries, using the alternative syntax AS OF TIMESTAMP.[10] Notably both of Oracle's implementations depend on the database transaction log and so only allow temporal queries against recent changes which are still being retained for backup.

Microsoft SQL Server (version 2016) implements temporal tables with SYSTEM_VERSIONING.[11]

MariaDB 10.3 implements system-versioned tables.[12] MariaDB 10.4.3 added support for application-versioned tables.[13]

PostgreSQL requires installation of the temporal_tables extension. Temporal Tables Extension supports the system-period temporal tables only, but does not follow the SQL:2011 design.

Ebean ORM supports History AS OF and VERSIONS BETWEEN queries on PostgreSQL and MySQL using triggers, history tables and views.

CockroachDB has supported AS OF SYSTEM TIME queries since at least v1.0.7.[14][15]

See also

[edit]

References

[edit]
  1. ^ Paulley (December 16, 2011), "SQL:2011 is published", IA, Sybase, archived from the original (blog) on July 11, 2012
  • ^ Zemke, Fred. "What's new in SQL:2011". ACM SIGMOD Record 41.1 (2012): 67-73
  • ^ Kulkarni, Krishna, and Jan-Eike Michels. "Temporal features in SQL: 2011". ACM SIGMOD Record 41.3 (2012): 34-43
  • ^ "SAP Help Portal".
  • ^ "SAP Help Portal".
  • ^ "SAP Help Portal".
  • ^ "Data management". IBM.
  • ^ "Data management". IBM.
  • ^ http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/12c/r1/ilm/temporal/temporal.html [bare URL]
  • ^ "Database SQL Reference".
  • ^ "Temporal Tables - SQL Server". 16 October 2023.
  • ^ "Changes & Improvements in MariaDB 10.3".
  • ^ "Application-Time Periods".
  • ^ "AS OF SYSTEM TIME | CockroachDB Docs".
  • ^ "Time-Travel Queries: SELECT witty_subtitle FROM THE FUTURE". Cockroach Labs. 22 June 2016.
  • [edit]
    Retrieved from "https://en.wikipedia.org/w/index.php?title=SQL:2011&oldid=1233114571"

    Categories: 
    SQL
    Declarative programming languages
    Query languages
    Programming languages created in 2011
    Hidden categories: 
    All articles with bare URLs for citations
    Articles with bare URLs for citations from September 2022
    Articles with short description
    Short description matches Wikidata
     



    This page was last edited on 7 July 2024, at 10:08 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki