May 2020
Beginner
564 pages
14h 9m
English
To create a temporary table, you can use the same syntax that we used for creating a permanent table, except we will add the TEMPORARY keyword. You can either create a temporary table with a definition or create one from an existing permanent table. Let's have a look at the syntax that's used to create temporary tables:
Use the following syntax to create a temporary table schema explicitly:
CREATE TEMPORARY TABLE temptablename( col1 col1type, col2 col2type);
You will define each column name, data type, and any constraints on it, such as NOT NULL, the same as you would when you create a permanent table.
Use ...
Read now
Unlock full access