Syntax for temporary tables

To explicitly create a temporary tableyou can use the following sample syntax:

CREATE TEMPORARY TABLE temptablename(
col1definition,
col2definition,
colndefinition);

To implicitly create a temporary table schema from one or more tables via a queryyou can use the following sample syntax:

CREATE TEMPORARY TABLE temptablename
SELECT * FROM permanenttable
LIMIT 0;

To delete a temporary tableyou can use the following sample syntax: 

DROP TEMPORARY TABLE temptablename;
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.111.33