sql - How do I cast a decimal field to a date field in DB2 AS/400? -


I have a decimal field with a date in the AS40 format: 1100614

I have tried :

  cast (given as of DATE)  

but I can not put a decimal on DATE, while

 <  
  • Li>

    It can be done, but it is not easy. If you need to do this often, then it may be time to write your own function to do this.


    Comments

    Popular posts from this blog

    windows - Heroku throws SQLITE3 Read only exception -

    lex - Building a lexical Analyzer in Java -

    python - rename keys in a dictionary -