我有一个名为fact_sgw的主表,还有一个名为fact_sgw_2016_06的子表,它只包含2016年6月的数据。如果我清空子表,是否会影响主表(fact_sgw)中的数据?
TRUNCATE ONLY 子表名
TRUNCATE TABLE <child_table_name> 在Postgres 14上运行良好。
TRUNCATE TABLE <child_table_name>
TRUNCATE ONLY 子表名
命令 - 详见文档 - https://www.postgresql.org/docs/current/static/sql-truncate.html。 - JosMac