Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Code flow not going to while loop

by runrig (Abbot)
on Aug 02, 2017 at 22:26 UTC ( #1196596=note: print w/replies, xml ) Need Help??


in reply to Code flow not going to while loop

Try explicitly converting the character string to a date with the to_date(...) function (I think that's the correct function in DB2, anyway).

Replies are listed 'Best First'.
Re^2: Code flow not going to while loop
by chacham (Prior) on Aug 03, 2017 at 03:23 UTC

    Try explicitly converting the character string to a date with the to_date(...)

    Good idea. TO_DATE() is a synonym for the TIMESTAMP_FORMAT. Being clearer, i would use the latter.

    Judging from the documentation, he could just go all the way with TIMESTAMP_FORMAT(?, 'YYYY-MM-DD HH24:MI:SS').

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1196596]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2021-04-22 17:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?