Is it bad practice to have spaces in between words in SQL entries?
Food Table
id name descriptions
-- ----------- ------------
1 large pizza very large
or do you need underscores?
Data is data. Your RDBMS won't care about spaces in the values in its string/text/varchar columns.
It makes no real difference. Maybe some more typing when entering queries in remembering to place block quotes around field names (i.e. [your long fieldname]).
Spaces in the records aren't a concern at all. Quite the opposite. Adding underscores would only mean that the developer would have to replace them in code. (grumble)
Spaces in the column names can add extra overhead and grumbling for the developer accessing the data. (For example, in SQL Server, you need to enclose them in square brackets in sql statements.)
_instead of spaces?To_be_or_not_to_be,_that_is_the_questiondoesn't look quite as nice and readable...