Do underscores in a MySQL table names cause issues?

前端 未结 11 968
不知归路
不知归路 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:21

    You can simply add grave accent (`) before and after column name. For example:

    CREATE TABLE USERS(
       `PERSON_ID` NVARCHAR(100),
       `FNAME` NVARCHAR(255), 
       `LNAME` NVARCHAR(255),
       PRIMARY KEY (`PERSON_ID`)
    );
    

提交回复
热议问题