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