Hi there,
This is my test statement, which returning "02022003" as eg.
export to C:\test.txt of del select case when day(thedate) < 10 then '0'||cast(day(thedate) as char(1)) else cast(day(thedate) as char(2)) end || case when month(thedate) < 10 then '0'||cast(month(thedate) as...
Hi there,
I tried to export a date into DDMMYYYY format. The date is exported into del format file. I'm able to extract the day, month, year and concatenate it to DDMMYYYY. But it is of string and the date exported to the file will be quoted with "" for eg. "02022003". But I...
Hi there,
By default, a column will be inserted a '-' by the DB2. Say, my table (TEST) data as below (both columns are CHAR):
FNAME LNAME
----- -----
- lname1
where '-' automatically inserted by DB2 when I executed the insert statement: INSERT INTO TEST (LNAME) VALUES...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.