Temporary Tables
GaussDB(DWS) does not support GLOBAL TEMPORARY TABLE, It migrates GLOBAL TEMPORARY TABLE to LOCAL TEMPORARY TABLE.
ON COMMIT DELETE ROWS is also not supported and will be migrated to ON COMMIT PRESERVE ROWS.
The following is an example of the syntax of a temporary table before and after migration.
Pre-migration
1 2 3 4 5 6 7 8 9 |
CREATE GLOBAL TEMPORARY TABLE schema1.temp_tbl1 ( col1 VARCHAR2 (400), col2 DATE NOT NULL ) ON COMMIT DELETE ROWS ; |
Post-migration
1 2 3 4 5 6 7 8 9 |
CREATE LOCAL TEMPORARY TABLE schema1_temp_tbl1 ( col1 VARCHAR2 (400), col2 DATE NOT NULL ) ON COMMIT PRESERVE ROWS ; |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot