Create New Table from Existing Table.
CREATE TABLE <databasename>.<tablename> AS
(Select <columnnames>
FROM <tablename>
WHERE condition)
with data;
(Select <columnnames>
FROM <tablename>
WHERE condition)
with data;
CREATE TABLE <databasename>.<tablename> AS
(Select <columnnames>
FROM <tablename>
WHERE condition)
with no data;
(Select <columnnames>
FROM <tablename>
WHERE condition)
with no data;
What is Perm space , Spool space and Temp space.
Spool Space=> SPOOL space is workspace used for the temporary storage of rows during the execution of user SQL statements. unused PERM space is automatically available for use as SPOOL.
Temp Space=> TEMP space is allocated to any databases/users where Global Temporary Tables are used. Unused perm space is available for TEMP space.
No comments:
Post a Comment