r/programminghumor • • Sep 20 '26

database admin choosing variable names

Post image
904 Upvotes

113 comments sorted by

View all comments

1

u/j0hn_br0wn Sep 21 '26

user_id_

Because the SQL revisions I've checked contain this interesting note: "It is the intention that no <key word> specified in ISO/IEC 9075 or revisions thereto shall end with an <underscore>"

so sticking to snake case plus adding a trailing underscore means that you will never have to quote the identifier.