mruff
asked on
db2 convert TIME to string 'HH24MISS'
db2 convert time to string
Hi I want to convert a time files (NOT Date, NOR timestamp) to a string representation with the format: 'HH24MISS'
I've tried:
1. TO_CHAR(mytime, 'HH24MISS')
2. VARCHAR_FORMAT(mytime, 'HH24MISS')
3. SUBSTR(LPAD(mytime, 6, '0'), 1, 2) ...
None of it worked
Many thanks for your support
Hi I want to convert a time files (NOT Date, NOR timestamp) to a string representation with the format: 'HH24MISS'
I've tried:
1. TO_CHAR(mytime, 'HH24MISS')
2. VARCHAR_FORMAT(mytime, 'HH24MISS')
3. SUBSTR(LPAD(mytime, 6, '0'), 1, 2) ...
None of it worked
Many thanks for your support
ASKER
Sorry typo:
A db2 database field of type TIME
A db2 database field of type TIME
Hi mruff,
What version of DB2 are you running? And what's the underlying server?
What version of DB2 are you running? And what's the underlying server?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What is it that you mean by 'a time files'. Can you be more specific?
Cheers