MySQL: Can't give tables a name in Upper Camel Case (Pascal Case)

前端 未结 4 823
一整个雨季
一整个雨季 2021-01-06 02:14

I read that it is best practise to have table names in Pascal Case (ThisIsMyTableName). Therefor I would like to change my tables in MySQL. But neither phpmyadmin, nore SQL

4条回答
  •  孤城傲影
    2021-01-06 02:56

    I advice against mixed case because of problems with case sensitivity. A fully tested solution on one platform where case doesn't matter may actually fail when deployed on a platform where case DOES matter. For that reason alone I suggest sticking with either all caps or all lower case. I use lower case because it is easier on the eye and make spelling errors easier to spot in fixed width fonts used in most editors.

提交回复
热议问题