I've created a temporary table DETAILS
and follow the same syntax of creating and inserting in it. But I have not received any result set However, the CREATE
and INSERT
statements ran successfully and the Row was also affected in the INSERT statement . But the result set was empty when I ran the last SELECT
statement to view the record .
DROP TABLE DETAILS ;
CREATE GLOBAL TEMPORARY TABLE DETAILS AS (
SELECT ins_id , firstname , pages FROM
INSTRUCTOR)DEFINITION ONLY;
INSERT INTO DETAILS
SELECT ins_id , firstname , pages
FROM INSTRUCTOR WHERE ins_id = '1';
SELECT * FROM DETAILS ;