Cardinality in PostgreSQL

萝らか妹 提交于 2019-12-06 14:36:53

问题


I have a UML diagram of what I need my database schema to look like. This diagram includes roles and cardinality. How can I enforce cardinality in Postgres?


回答1:


Cardinality is enforced by using constraints.

http://www.postgresql.org/docs/8.1/static/ddl-constraints.html



来源:https://stackoverflow.com/questions/3135206/cardinality-in-postgresql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!