Do underscores in a MySQL table names cause issues?

前端 未结 11 969
不知归路
不知归路 2021-02-06 22:17

Do underscores in table names affect performance or cause issues on some platforms?

For example, user_profiles

Would it be better to use user

11条回答
  •  时光取名叫无心
    2021-02-06 23:03

    You should avoid it. Although it is a permitted character in MySQL documentation, it appears it might cause trouble. For example, in MySQL 5.0 & 5.1 (and may be later versions), the query cache is never hit for queries involving a table name containing an underscore.

提交回复
热议问题