将表名更改为大写 [英] change table name to upper case

查看:72
本文介绍了将表名更改为大写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将表名从小写更改为大写,但是使用此语句,表名可以更改,但名称为小写.

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?

推荐答案

  1. 在my.cnf中的mysql服务器变量数组中添加以下行:

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

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/my.cnf/etc/mysql/my.cnf中找到主要的mysql配置文件.

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

    这篇关于将表名更改为大写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆