将表名更改为大写

编程入门 行业动态 更新时间:2024-10-28 08:28:51
本文介绍了将表名更改为大写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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.

  • 更多推荐

    将表名更改为大写

    本文发布于:2023-10-26 01:28:14,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1528679.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:为大   将表名

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!