Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pros and Cons of table name having spaces

Tags:

sql

mysql

In one of my project, it was required to have a table with space in between. Some suggest me not to include spaces because it is not a good technique.

we can still implement it using single-double quotes for table name in queries. But i need a solid backing for not opting spaces. Please help.

like image 438
freddie Avatar asked Dec 16 '22 19:12

freddie


1 Answers

It makes it harder to read, creates complexity if you ever want to do dynamic SQL. Spaces in the tables names on the other hand add no value whatsoever.

Mr. Anderson points out that its tedious. This is true enough, but more importantly it adds unnecessary tediousness.

like image 198
Conrad Frix Avatar answered Jan 14 '23 01:01

Conrad Frix