Authoritative SQL standard documentation

試著忘記壹切 提交于 2019-11-30 18:40:26

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:

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.

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

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)

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

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.

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