我使用 postgresql,我需要删除模式中存在的所有表。如何从命令提示符中删除。
postgresql postgresql-9.4
如果表在模式中不包含该列,您能否给出向所有表添加一列的命令?
例如,模式schema1包含 50 个表,其中 20 个表包含名为 的列colTest。
schema1
colTest
我需要将该列添加colTest到剩余的 30 个表中。
postgresql dynamic-sql postgresql-9.4
postgresql ×2
postgresql-9.4 ×2
dynamic-sql ×1