|
-
Jul 13th, 2006, 03:00 PM
#1
Thread Starter
Hyperactive Member
MySQL datetime problem
Hi all,
I am trying to use the SQL statement below
INSERT INTO (mytime)
VALUES('14 July 2006')
it doesn't work, it's complaining about my date is incorrect, can anyone help?
Regards
PlayKid
-
Jul 14th, 2006, 05:28 AM
#2
Re: MySQL datetime problem
where you have mentioned your table name in the query. mytime is your field name right...
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Jul 14th, 2006, 06:33 AM
#3
Frenzied Member
Re: MySQL datetime problem
MySql date format is yyyy/mm/dd. Try '2006/07/14'.
Tengo mas preguntas que contestas
-
Jul 15th, 2006, 05:41 AM
#4
Re: MySQL datetime problem
YYYY-MM-DD will also work, and is somewhat common to many relevant databases. (Where relevant databases imply either SQL Server and MySQL. Others unknown)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|