Ocramius / ocramius.github.com

:books: Coding thoughts and ideas by Ocramius
https://ocramius.github.io/
40 stars 25 forks source link

Don't use "as" as a SQL alias #83

Closed lsklyut closed 9 years ago

lsklyut commented 9 years ago

While reading the blog post, the two sections modified made me do a double take. I know it's perfectly valid SQL, but reading "as.id AS sessionId" threw me off. I renamed the aliases to not use "as".

Ocramius commented 9 years ago

@lsklyut thanks!