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

前端 未结 4 849
一整个雨季
一整个雨季 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:53

    Use RENAME

    example:

    RENAME TABLE this_is_my_table_name TO ThisIsMyTableName;
    

    details : http://dev.mysql.com/doc/refman/5.1/en/rename-table.html

提交回复
热议问题