Can I autogenerate SQL code for existing constraint in postgres and get it like the result of other sql query? Pgadmin can do it , but i need the sql query for constraint by it's name. Thanks in advance
You should use the pg_get_constraintdef
function to construct an SQL statement for the constraint definition.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.