Hi,
Sorry I forgot to post the error.
This is what I got after running the script in DB29.5:
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token "BEGIN IF NOT...
Hi,
I am new to DB2, I have a script that is working on DB2 v9.8 but not in DB2 v9.5:
BEGIN
IF NOT EXISTS (SELECT TABNAME FROM SYSCAT.TABLES WHERE TABNAME='TABLE1')
THEN
EXECUTE IMMEDIATE
'CREATE TABLE "TABLE1" (
"USERNAME" VARCHAR (130) NOT NULL,
"PASSWORD" VARCHAR (1020)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.