gpt4 book ai didi

mysql - 对假的 MySQL 数据库 "namespacing"使用句号是否安全?

转载 作者:行者123 更新时间:2023-11-29 01:09:08 25 4
gpt4 key购买 nike

如果您愿意,我想将我****的 MySQL 表组织成更小的部分或 namespace 。因此我想用 namespace 前缀命名我的表。我不想使用下划线,因为我已经将它们用于多词表名。可以使用句点吗?还是有特殊含义?

例子

CREATE TABLE `map.meta_data.updates` (...

最佳答案

如果用引号标识,您可以在表名上使用句点。

Permitted characters in unquoted identifiers:

ASCII: [0-9,a-z,A-Z$_] (basic Latin letters, digits 0-9, dollar, underscore)

Extended: U+0080 .. U+FFFF

Permitted characters in quoted identifiers include the full Unicode Basic Multilingual Plane (BMP), except U+0000:

ASCII: U+0001 .. U+007F

Extended: U+0080 .. U+FFFF

引用:http://dev.mysql.com/doc/refman/5.5/en/identifiers.html#id807853


我个人更喜欢并建议在不加引号的标识符中只使用允许的字符!

关于mysql - 对假的 MySQL 数据库 "namespacing"使用句号是否安全?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9062751/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com