Authoritative SQL standard documentation

坚强是说给别人听的谎言 提交于 2019-12-18 19:35:15

问题


I'm curious to know some more details about the various SQL standard's, i.e. SQL-92, SQL:99, SQL:2003, SQL:2008 etc. There is a short and useful overview on Wikipedia, with links to very expensive documents. Why are those documents not open to public? Can I find some open and free information?

Please, don't post links you found from Google. I'm interested in somewhat authoritative documentation only.


回答1:


Quoting from one of my web sites:

We all love open source software. Wouldn’t it be great if international standard documents such as the SQL standard would be open too?

As a matter of fact: they are!

However, they are not free—just public. Very much like open source software is not necessarily free. Too often, we neglect these differences. Just because we have to pay for the standard doesn't mean it is secret.

A download of the most relevant part of the SQL standard—part 2—is available for USD 60 at ANSI. A CD with all parts on it can be bought from ISO for CHF 352. Not free, but affordable.

You mentioned in some comments that you are mostly interested in part 2, so spending USD 60 might be your best option.

If you just need to know about the syntax up to 2003, there are two great free resources:

  • BNF grammar of SQL-92, SQL:1999 and SQL:2003: http://www.savage.net.au/SQL/
  • Online validator for SQL-92, SQL:1999 and SQL:2003: http://developer.mimer.se/validator/index.htm

Finally, the complete text of “SQL-99 Complete, Really” is available at the MariaDB knowledge base. However, this book was written in 1999 when no database actually supported the described features. Keep that in mind when using this resource.

Other answers also mentioned "free" copies of the standards available on the web. Yes there are—those are mostly draft versions. I can't tell which of them are legal, so I rather not link them.

Finally a little self ad: I've just launched http://modern-sql.com/ to explain the standard in an easily accessible way to developers. Note that the actual standards text is written like laws are written :) Depending on your background, that might anyway not what you want.




回答2:


The Postgresql Developer FAQ maintains links to each of them:

http://wiki.postgresql.org/wiki/Developer_FAQ#Where_can_I_get_a_copy_of_the_SQL_standards.3F




回答3:


There are some hyperlinked versions of 92, 99 and 2003 here

However, I've never been able to use them effectively (read: I gave up).

This 92 text is useful (and is quoted here on SO several times)




回答4:


ISO/IEC 9075-1:2011 -- google that.

Actually, digging around I found

http://www.incits.org/standards-information/ and it has freely availble section that clicks to something that redirects to here: http://standards.iso.org/ittf/PubliclyAvailableStandards/index.html

And finally the standards.

You have to accept a license agreement to download a pdf.

However, from what I have read in my pursuit - the RDMS well the 'RD' part is going the way of the dinosaur.. If you are building something new (therefore want the new standards) you may want to reconsider all options.




回答5:


You don't have to pay for all of the standards. SQL-92 is freely available, for instance.



来源:https://stackoverflow.com/questions/6000847/authoritative-sql-standard-documentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!