Re: Sql Date problem

From: Jim Kennedy <kennedy-down_with_spammers_at_attbi.com>
Date: Tue, 07 Jan 2003 03:11:49 GMT
Message-ID: <VzrS9.465136$pN3.50339_at_sccrnsc03>


In Oracle I would do
insert into myTable(column1,column2...) values(... , to_date(20010919,'yyyymmdd')...);
From your example I don't know if the month or the day comes first so it might be:
insert into myTable(column1,column2...) values(... , to_date(20010919,'yyyyddmm')...);

But this is an Oracle newsgroup so we don't support that other product that shall be nameless.
Jim

--
Replace part of the email address: kennedy-down_with_spammers_at_attbi.com
with family.  Remove the negative part, keep the minus sign.  You can figure
it out.
"fullyii" <dfully_at_cox.net> wrote in message
news:2352786.1041872420_at_dbforums.com...

>
> I recieve a text file with a field that has a text format of 20010910.
> I import this data into sql server 7.0 utilizing the import wizard.
> (The wizard will not convert the data to datetime format) I need to
> know how to convert this data into date format of 2001/09/10. How do I
> do this in sql.
>
> Thank You,
> David A. Fullerton
>
> --
> Posted via http://dbforums.com
Received on Tue Jan 07 2003 - 04:11:49 CET

Original text of this message