db2 oracle 中select 语句查询不存在列的写法
oracle中是这样写的:
select null as colname from tablename
db2是这样写的:
select cast(null as coltype) as colname from tablename
其中:cast中要把null对应的列的类型写出
db2 oracle 中select 语句查询不存在列的写法
oracle中是这样写的:
select null as colname from tablename
db2是这样写的:
select cast(null as coltype) as colname from tablename
其中:cast中要把null对应的列的类型写出