MySQL: Difference between revisions
Jump to navigation
Jump to search
→Table Naming Convention
imported>Rockdtben (Created page with "MySQL is a language you use with databases. Queries are however not interpreted 'one line at a time', instead they are best described as a single instruction, with lots of arg...") |
imported>LiamLime |
||
Line 33: | Line 33: | ||
== Table Naming Convention == | == Table Naming Convention == | ||
Tables are usually named in lower case, they use the underscore as a word separator and the first word is usually the name of the | Tables are usually named in lower case, they use the underscore as a word separator and the first word is usually the name of the project the table is a part of. Most tables in the tgs database are called ss13_X. The last common thing is to always use singular. So 'user_reports' is not a good name, 'user_report' is. These naming conventions are there to help you down the road, so you will not be in doubt whether a table is called 'ss13_players' or 'ss13_player', etc. Examples: ss13_player, ss13_connection_log, ss13_poll_question, etc. | ||
== SELECT == | == SELECT == |