SQL>
SQL> CREATE GLOBAL TEMPORARY TABLE mytemp (
2 id INTEGER,
3 status VARCHAR2(10),
4 last_modified DATE DEFAULT SYSDATE
5 )
6 ON COMMIT PRESERVE ROWS;
Table created.
SQL>
SQL> INSERT INTO mytemp (
2 id, status
3 ) VALUES (
4 1, 'New'
5 );
1 row created.
SQL>
SQL> --DISCONNECT
SQL> --CONNECT userName/password
SQL>
SQL> --SELECT * FROM order_status_temp;
SQL>
|