I know the "CREATE GLOBAL TEMPORARY TABLE" syntax, but suppose I want to create a temporary table in a stored procedure that lives only within that sp? What is the 400/iSeries syntax for doing so?
Aren't GLOBAL TEMPORARY tables viewable to all connections?
I thought so. This is not the case? I want the table scoped to my sp only (i.e. so that it can be fired simultaneously by n-users. Is the trick just to name the temp tables uniquely so that it doesn't matter if they all can see each other)?