How can I alter a temporary table with 36 million rows to add a new column?
问题 I am working with a temporary table in Netezza that contains the columns id, gender, start_date, and end_date. I want to add a new column to this table that contains a default date of 2019-01-01 for all rows. The table to which I want to add this column is a local temp table, so ALTER TABLE does not work ("Error: Operation not allowed on a temp table"). To get around this, I created a new temp table as follows: DROP TABLE new_temp_table IF EXISTS; GO SELECT id, gender, start_date, end_date,