Does anyone have a query to list all tables from a schema ordered by FK hierarchy?
Hello everyone,
I'm trying to find a query that lists all tables from a given schema ordered by hierarchy. But all that i found is queries that shows table names and parent table, and i really need just a list ordered by it so i can script inserts to migrate data avoiding FK errors and having to re run the failed inserts.
If anyone has it or can post a link were i can find it, I'll appreciate.
Thanks.