Hi, I am executing a query through executequery() expression rule. To the q

Hi,
I am executing a query through executequery() expression rule. To the query, i am passing an number(integer) input dynamically. The input numbers are like this : 1363852714818, 1363852714900 etc. But while passing the input as parameter, the query is unable to accept this much big number. Could anyone provide a solution for this asap?
Thanks in advance.....

OriginalPostID-61634

OriginalPostID-61634

  Discussion posts and replies are publicly visible

Parents
  • @mathanp
    I don't need to store any number.The scenario is as follows: I need to pass a number(which is timestamp of oracle) and convert into datetime format. For this the number needed to be passed exactly.
    executequery("jdbc/AppianPrimaryDS","SELECT TO_CHAR(
    FROM_TZ(
    CAST(to_date('1-1-1970 00:00:00','DD-MM-YYYY HH24:Mi:SS')+(&ri!epochNumber&/86400000) AS TIMESTAMP)
    , '+00:00'
    )
    AT TIME ZONE '+05:30'
    , 'DD-MON-YYYY HH24:Mi:SS')
    FROM DUAL")
Reply
  • @mathanp
    I don't need to store any number.The scenario is as follows: I need to pass a number(which is timestamp of oracle) and convert into datetime format. For this the number needed to be passed exactly.
    executequery("jdbc/AppianPrimaryDS","SELECT TO_CHAR(
    FROM_TZ(
    CAST(to_date('1-1-1970 00:00:00','DD-MM-YYYY HH24:Mi:SS')+(&ri!epochNumber&/86400000) AS TIMESTAMP)
    , '+00:00'
    )
    AT TIME ZONE '+05:30'
    , 'DD-MON-YYYY HH24:Mi:SS')
    FROM DUAL")
Children
No Data