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.
我有一个我需要我的数据库模式的 UML 图。此图包括角色和基数。如何在 Postgres 中强制执行基数?
基数是通过使用约束来强制执行的。
http://www.postgresql.org/docs/8.1/static/ddl-constraints.html