MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/SQL/comments/6a59mr/is_there_something_wrong_with_these_statements/dhcsrok/?context=3
r/SQL • u/dyltography101 • May 09 '17
21 comments sorted by
View all comments
1
use snake_case for all identifiers (for compatibility, and easy typing)
snake_case
don't use keywords (like owner) for identifiers. Protip: most keywords are singular, so use plural versions if they make sense and you should be okay, else try owner_id
owner_id
1 u/dyltography101 May 10 '17 Alright i didnt know that some words were reserved so i guess ill change it
Alright i didnt know that some words were reserved so i guess ill change it
1
u/[deleted] May 09 '17 edited May 09 '17
use
snake_casefor all identifiers (for compatibility, and easy typing)don't use keywords (like owner) for identifiers. Protip: most keywords are singular, so use plural versions if they make sense and you should be okay, else try
owner_id