Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
只是想知道为什么当我使用 SQLite 数据库浏览器浏览所有表和实体时,它们的名称前面都带有 Z 前缀。我的数据库中的实体在代码中被命名为Assignment,当我浏览它时,它被命名为ZASSIGNMENT。
它可能是 Apple 团队为 Core Data SQLite 命名的约定。
原因可能是:
Z 是字母表中使用最少的字母之一。因此名称冲突的可能性较小。
在大写字母中使用 Z 使其脱颖而出,因为它将在列表中显示为最后。
甚至 SAP 在其表名中也使用 Z 作为前缀。