databasedatabase-design

Table Naming: Underscore vs Camelcase? namespaces? Singular vs Plural?


How do I name tables in a database?

Most developers tend to name the tables depending on the language that requires the database (JAVA, .NET, PHP, etc.). This isn't right.

I've been naming like:

doctorsMain
doctorsProfiles
doctorsPatients
patientsMain
patientsProfiles
patientsAntecedents 

I'm concerned with:


Solution

  • Being consistent is far more important than what particular scheme you use.