-
DB2 query
select trim(to_char(CURRENT_TIMESTAMP,'MM/YYYY')) from SYSIBM.SYSDUMMY1.
When I execute this query, I get this error:
[Star SQL][Star SQL ODBC driver][DB2]THE DATA TYPE,LENGTH OR VALUE OA ARGUMENT 2 OF TO_CHAR IS INVALID.
Would any one know why??
-
Check db2 syntax in manual.
-
SELECT substr(( ADD_MONTHS(CURRENT_TIMESTAMP,6)),4) from SYSIBM.SYSDUMMY1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|