I've never seen the syntax you are using. You are using "CREATE GLOBAL TEMPORARY TABLE .. AS SELECT ... FROM table"
First, 'table' is a reserved word, so you won't be able to do that anyway.
Seconly, you create the temp table once only.
Each session uses it with inserts, updates, deletes, etc. and data is deleted at end of transaction or at end of session, depending on your options. You sayd "ON COMMIT PRESERVE ROWS" so this will last until the session ends.
Have you tried this?
Main Topics
Browse All Topics





by: sdstuberPosted on 2009-03-11 at 13:36:49ID: 23862075
what happens when you try? are you getting errors? if so, what are they?
are you getting no results at all? if so, how are you doing your test?
are you using multiple sessions? If so, session 1 can't see anything done by session2, even if you commit.