On 2011-05-10 23:24, Frederik Engelen wrote:
Quote:
select 1 from dual
but you will have to enable Oracle compability mode for that
Shoud you be on Express-C (no Oracle compatibility), you could do the
same by creating an alias called DUAL on the sysdummy1 view (not
tested though). |
It appears as if there already is an alias:
db2 "create public alias dual for sysibm.sysdummy1"
DB21034E The command was processed as an SQL statement because it was
not a
valid Command Line Processor command. During SQL processing it returned:
SQL0601N The name of the object to be created is identical to the existing
name "SYSPUBLIC.DUAL" of type "ALIAS". SQLSTATE=42710
I guess that db2set DB2_COMPATIBILITY_VECTOR=2 somehow makes this
accessible without having to qualify it with schema ( can't investigate
because I only have express on 9.7 )
/Lennart