How to SET CONSTRAINTS DEFERRED in sqlalchemy expression language?

后端 未结 1 455
孤独总比滥情好
孤独总比滥情好 2021-01-21 19:16

I have a table we\'ll call table_A which has a foreign key that references table_B. Table_B also has a foreign key that references table_A. To insert a record for table_A, I hav

相关标签:
1条回答
  • 2021-01-21 20:02

    Thanks for the suggestion @a_horse_with_no_name, but there was still a NOT NULL constraint left on the column, and the 'NOT NULL' constraint is not deferrable.

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