PHPmyAdmin 中的 MySQL 命名

发布于 2024-09-18 04:39:05 字数 79 浏览 2 评论 0原文

如何在 PHPMyAdmin 中重命名 MySQL 表? (SQL 命令?)

使用 PHP 时 MySQL 表名称区分大小写吗?

How do you rename a MySQL table in PHPMyAdmin? (SQL command?)

Are MySQL table names case-sensitive when working with PHP?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

强辩 2024-09-25 04:39:05

浏览表时点击Operations选项卡来重命名它。名称在 Linux 中区分大小写,在 Windows 中不区分大小写。

Hit the Operations tab when browsing a table to rename it. Names are case-sensitive in Linux, insensitive in Windows.

滥情哥ㄟ 2024-09-25 04:39:05

您可以使用 RENAME TABLE 语法

RENAME TABLE old_name TO new_name

..但需要注意的是,当您执行该语句时,没有人可以访问该表。

区分大小写取决于排序规则 - 以“_ci”结尾的排序规则表示“不区分大小写”。客户端(在您的例子中是 PHPMyAdmin)可以拥有与 MySQL 实例的排序规则不同的排序规则......并且表可以拥有自己的排序规则。有关详细信息,请参阅 MySQL 排序规则文档

You can use the RENAME TABLE syntax:

RENAME TABLE old_name TO new_name

...but the caveat is that no one can be accessing the table when you execute the statement.

Case sensitivity is dependent on the collation - collations ending with "_ci" means "Case Insensitive". The client, in your case PHPMyAdmin, can have it's collation which is different from the MySQL instance's collation... and tables can have their own collation. See the MySQL Collation documentation for more info.

情魔剑神 2024-09-25 04:39:05

表名大小写敏感度由 lower_case_table_names 服务器变量控制:

http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_lower_case_table_names

The table name case sensitivity is controlled by lower_case_table_names server variable:

http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_lower_case_table_names

深巷少女 2024-09-25 04:39:05

在 phpMyAdmin 中,您所需要做的就是单击表格,然后单击“操作”选项卡。到达那里后,您将看到“将表重命名为”。改变这个字段,你应该就可以开始了。

In phpMyAdmin all you need to do is click on the table, and then click on the 'Operations' tab. Once there, you will see 'Rename Table To'. Change this field and your should be good to go.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文