I asked a similar question, but about javascript. But I read a lot of SQL and MySQL codes. Is there a commonly accepted pattern? Does anyone know of a tool that validates or modifies the code?
I asked a similar question, but about javascript. But I read a lot of SQL and MySQL codes. Is there a commonly accepted pattern? Does anyone know of a tool that validates or modifies the code?
There is an online tool that I use to format SQL that is very confusing:
This tool allows you to format SQL's of several SGDB's, so that they become more "cute".
Speaking of pattern, I do not think there is one as long as it works and is readable. The formatting may vary depending on the case, and what is considered to be readable . In many cases the formatting of a SQL gives focus on some parts, but leaves other parts more compact ... readability is a human factor, so this justifies my opinion of not having a pattern.