Hi all,
I have a function that relies on an empty temporary table all of the time. So what I'm trying to do is the following
//create 'Qualify' table if not already there
create global temporary table if not exists Qualify(
val1 VARCHAR(4)
val2 VARCHAR(2)
val3 VARCHAR(3)
on commit preserve rows;
note: this doesn't work and i'm not sure why.
what i would like to do is check if the table exists and if it does, delete everything in it. Any ideas how I would do this? I'm in a java environment if that helps at all. Thanks. Mike
~~~~
simanek@uiuc.edu
"It's a Swingline!"
~~~~
I have a function that relies on an empty temporary table all of the time. So what I'm trying to do is the following
//create 'Qualify' table if not already there
create global temporary table if not exists Qualify(
val1 VARCHAR(4)
val2 VARCHAR(2)
val3 VARCHAR(3)
on commit preserve rows;
note: this doesn't work and i'm not sure why.
what i would like to do is check if the table exists and if it does, delete everything in it. Any ideas how I would do this? I'm in a java environment if that helps at all. Thanks. Mike
~~~~
simanek@uiuc.edu
"It's a Swingline!"
~~~~