I have a problem with the temporary table in DB2.
Inside a script, I declared a temporary table, inserted data into it (1 row inserted successfully - shown in the message after execution) but there is no row when I selected just after the INSERT statement, this results to another issue that I cannot join this temp table with another table cause no data for joining.
With the same code, I brought it into a stored procedure, it works. The temp table has data when selecting and it can be used for joining.
Anyone knows why? Can you advise me please? I need to work this in a script.
Thanks, Trong