DEV Community

Discussion on: Database, Table and Column naming conventions

Collapse
 
hobbyman profile image
hobbyman

camelCase - no, no, and NO

I've worked in the database realm since 1993.
I have worked every major database engine and more projects than you can shake a stick at.

Any casing of column names in the long run is really more trouble than it's worth.

You either have to remember that a certain column name must be selected with double quotes or square brackets (depending on the database engine).

Ex.

select "thisColumnName" from table

or

select [thisColumnName] from table

In the long run, in my experience, you should ALWAYS use underscore between words.

Ex.

select this_column_name from table