March 4, 2015 at 12:38 pm
Hi everyone,
i have a SQL script below
SELECT ITEM AS "ClassCode",
Appdate AS "EstablishedDate",
--> output is for example : 1/1/2008 (without any single or double quotes)
However, according to the new format, i convert it to
SELECT ITEM AS "ClassCode"
TO_char(Appdate,'YYYY-MM-DD') AS "EstablishedDate"
--> output is for example : "2008-01-01" (This is what they want)--> how can i remove those double quote from script? or can i covert it to numeric value? Thank you.
March 4, 2015 at 12:45 pm
March 4, 2015 at 12:54 pm
Sorry for confusion.
My company is using Toad which is from Oracle.
TO_char(Appdate,'YYYY-MM-DD')) AS "EstablishedDate"
when i used this function, in database there is no quote at all. However, i need to general the file to txt and pvoide to related department and the date is surrounded by " " sign.
thanks.
March 4, 2015 at 12:57 pm
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply