SELECT cast(0 as integer) AS a from (select 'X' as DUMMY) as X
UNION ALL
SELECT -9999 AS a from (select 'X' as DUMMY) as XThe first selects defines the datatype.
Try alsoe
SELECT type(0) AS a from (select 'X' as DUMMY) as X
↧