是否有任何已发布的SQL编码风格指南? [英] Are there any published coding style guidelines for SQL?
问题描述
通常,我最终会得到非常复杂的SQL语句,并且我想知道是否存在样式指南,该指南规定了将查询的各个方面进行布局的通用方法.
我正在寻找类似于 Python的PEP8 的描述性内容,或者 Zend Frameworks指南,而不是示例代码.
我的大多数查询都是针对MySQL编写的.
那么您知道通用样式指南吗?也许你自己写了一个.请分享您的准则.
由于提出了这个问题,我编写了一个公共SQL样式指南,该指南与Creative Cels署名-ShareAlike许可下的Joe Celko的SQL编程样式书兼容. >
可以在 www.sqlstyle.guide 或Python's PEP8 or Zend Frameworks guidelines and not code by example.
Most of my queries are written for MySQL.
So do you know of a universal style guide? Perhaps you have written one yourself. Please share your guidelines.
Since asking this question I have written a public SQL style guide that is compatible with Joe Celko's SQL Programming Style book under the Creative Commons Attribution-ShareAlike licence.
It is available over at www.sqlstyle.guide or as markdown directly from the GitHub repo.
这篇关于是否有任何已发布的SQL编码风格指南?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!