本文介绍了将表名更改为大写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要将表名从小写更改为大写,但是使用此语句,表名可以更改,但名称为小写.
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> rename table name to Name;有什么办法可以将表名转换为大写?
is there any way to convert table name to uppercase?
推荐答案
在myf中的mysql服务器变量数组中添加以下行:
Add this line in the mysql server variables array in myf: lower_case_table_names=2
重新启动mysql服务器.
Restart your mysql server.
现在您可以大写形式创建或更改表,服务器将接受您的查询.
Now you can create or alter tables in upper case, the server will accept your query.
请注意,通常在Linux系统上,可以在/etc/myf或/etc/mysql/myf中找到主要的mysql配置文件.
Note that usually, on Linux systems, the main mysql configuration file can be found in /etc/myf or /etc/mysql/myf.
更多推荐
将表名更改为大写
发布评论