Re: Dumb Question of the day (maybe year)
- From: "NC" <nc@xxxxxxxxx>
- Date: 28 Jun 2005 14:50:45 -0700
Terry wrote:
>
> I am using phpMyAdmin to access MySQL for inputting data - built one
> table - no problems. I am uploading text files using ; as a delimiter.
> Second table includes a date (configured as date not datetime). I have
> tried:
> 2001-21-06;hello; \r\n
> 20002106;goodby; \r\n
> '2001-21-06';hello; \r\n
> '20002106';goodby; \r\n
>
> All I get is:
> Date comment
> 0000-00-00 hello
MySQL requires dates being imported to be in YYYY-MM-DD format; so to
MySQL, "2001-21-06" appears to be an invalid date, since there are only
12 months in a year, not 21, as you propose...
Cheers,
NC
.
- Follow-Ups:
- Re: Dumb Question of the day (maybe year)
- From: nemo
- Re: Dumb Question of the day (maybe year)
- From: Terry
- Re: Dumb Question of the day (maybe year)
- References:
- Dumb Question of the day (maybe year)
- From: Terry
- Dumb Question of the day (maybe year)
- Prev by Date: Re: Dumb Question of the day (maybe year)
- Next by Date: Re: Dumb Question of the day (maybe year)
- Previous by thread: Re: Dumb Question of the day (maybe year)
- Next by thread: Re: Dumb Question of the day (maybe year)
- Index(es):
Relevant Pages
|