I'm having an issue trying to convert the UNIX time value to a readable SQL date. I keep getting a "ORA-00904: invalid column name" message. Here's the statement:
SVRMGR> select dateadd(second,f_createtime,'1970-01-01') from f_sw.vwqueue1_127;
select dateadd(second,f_createtime,'1970-01-01') from f_sw.vwqueue1_127
*
ORA-00904: invalid column name
SVRMGR>
If I just a select f_createtime from f_sw.vwqueue1_127, I will get the UNIX time (1119245684) in seconds from 01/01/1970. Anyone help me with what the problem is? I'm running Oracle 8.1.7 if that makes a difference. Thanks.
SVRMGR> select dateadd(second,f_createtime,'1970-01-01') from f_sw.vwqueue1_127;
select dateadd(second,f_createtime,'1970-01-01') from f_sw.vwqueue1_127
*
ORA-00904: invalid column name
SVRMGR>
If I just a select f_createtime from f_sw.vwqueue1_127, I will get the UNIX time (1119245684) in seconds from 01/01/1970. Anyone help me with what the problem is? I'm running Oracle 8.1.7 if that makes a difference. Thanks.