I'm new to PL/SQL and I'd like to insert values into a global temp table using the following code:
CREATE GLOBAL TEMPORARY TABLE test_variable
(
only_datex TIMESTAMP(6) NULL,
only_datey TIMESTAMP(6) NULL
)
ON COMMIT PRESERVE ROWS;
DECLARE
x TIMESTAMP(6) := CURRENT_DATE;
y TIMESTAMP(6) := CURRENT_DATE - 1;
BEGIN
INSERT INTO test_variable VALUES(x,y);
END
SELECT * FROM test_variable;
