阅读背景:

按依赖顺序对表进行排序 - Postgres

来源:互联网 

Purpose is to allow a insert script to add data to all tables in schema, such that it doesn't create any conflict in constraint. i take tables from information_schema.tables and take constraints from information_schema.table_constraints but not sure how to compare to sort tables in order of foreign key constraints. Please favour. Purpose is to allow a insert script to add data




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: