change table name to upper case

前端 未结 4 891
别跟我提以往
别跟我提以往 2020-12-25 14:58

I need to change table name from lowercase to uppercase but using this statement the table name can be changed but the names are in lowercase..

sql> rena         


        
4条回答
  •  忘掉有多难
    2020-12-25 15:28

    1. Add this line in the mysql server variables array in my.cnf:

      lower_case_table_names=2
      
    2. Restart your mysql server.

    3. Now you can create or alter tables in upper case, the server will accept your query.

    Note that usually, on Linux systems, the main mysql configuration file can be found in /etc/my.cnf or /etc/mysql/my.cnf.

提交回复
热议问题