Generate DDL programmatically on Postgresql

后端 未结 6 1834
陌清茗
陌清茗 2020-12-05 17:34

How can I generate the DDL of a table programmatically on Postgresql? Is there a system query or command to do it? Googling the issue returned no pointers.

6条回答
  •  我在风中等你
    2020-12-05 18:17

    Here is a good article on how to get the meta information from information schema, http://www.alberton.info/postgresql_meta_info.html.

提交回复
热议问题