Select null as xyz from sysibm.sysdummy1--not work????
Up to DB2

Select null as xyz from sysibm.sysdummy1
why above query does not work in db2
while
select null from dual work in oracle.....
is there any alternative of this issue????
Thanks & Regards
Pawan
Re: Select null as xyz from sysibm.sysdummy1--not work????

The above query returns SQLCODE = -206, saying NULL IS NOT VALID IN THE CONTEXT WHERE IT IS USED.
Could you please let us know your exact requirement?
Powered by
Ploneboard