How to make ARRAY field with foreign key constraint in SQLAlchemy?

后端 未结 1 971
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-05 04:47

How to make column with ARRAY(Integer) type, where each integer is primary key from some other table? If it\'s impossible, how to achieve similar table relationships with ot

相关标签:
1条回答
  • 2021-01-05 05:26

    As of PostgreSQL 9.3, this is not implemented, see http://blog.2ndquadrant.com/postgresql-9-3-development-array-element-foreign-keys/ One should turn array into other table.

    0 讨论(0)
提交回复
热议问题