hi
everyone
i m new to this website.after long searching i found this site is useful.i have a problem in db2
i want to the date from db2 in this format dd-mon-yy
can anyone pls tell me the soultion i have tried
this from ibm db2 site but this also not working
SELECT VARCHAR_FORMAT(CURRENT TIMESTAMP,'DD-MON-YYYY HH24:MI

S') FROM SYSIBM.SYSDUMMY1
i have tried the other way also using substring and date then count ...bla bla..
i dont want this confused query .....since i m in field of databse administrating
can anyone tell me whats the problem inthis query
db2 => SELECT VARCHAR_FORMAT(CURRENT TIMESTAMP,'DD-MON-YYYY HH24:MI

S') FROM SYSIBM.SYSDUMMY1
SQL0171N The data type, length or value of argument "2" of routine
"SYSIBM.VARCHAR_FORMAT" is incorrect. SQLSTATE=42815