[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

update query to update the Date column in a table (MySql)

Posted on 2011-05-06
2
Medium Priority
?
450 Views
Last Modified: 2012-05-11
Hi,

I need Update query to update the Date column in a MySql table

i am using this Query to update the date in table

UPDATE table SET StartDate = '2011-20-04' WHERE MyID = 1 ;

But got this error message

Incorrect date value: '2011-20-04' for column 'StartDate' at row 1

can anyone pls help me????

Thanks,
Ajay
0
Comment
Question by:ajayvegesna02
  • 2
2 Comments
 

Accepted Solution

by:
ajayvegesna02 earned 0 total points
ID: 35711102
Sorry....

The format should be yyyy-MM-dd ..... instead of yyyy-dd-MM


now it's executing fn....
0
 

Author Closing Comment

by:ajayvegesna02
ID: 35711104
when i am looking the problem deeply ... i got this solution....
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month19 days, 15 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question