Can I truncate tables dynamically?
问题 I have a table with 3 different partitions that is split on the point_of_sale column. I have constructed a view ( massive_table ) to aggregate data from these partitions like so: CREATE VIEW massive_table as SELECT * FROM massive_table_UK UNION ALL SELECT * FROM massive_table_US UNION ALL SELECT * FROM massive_table_DE; The massive_table_UK/US/DE tables each have a check constraint imposed on them so that the point_of_sale column can only contain a string value of either UK , US or DE as