troubleshooting Question

Need SQL to Update MySQL server table???

Avatar of Eric Sherman
Eric ShermanFlag for United States of America asked on
MySQL Server
2 Comments1 Solution173 ViewsLast Modified:
I have a table in a MySQL that I need to update a date/time field where the date protion needs to be extracted from a text field as shown below.

Field1, date/time, current value = '0000-00-00 00:00:00'
Field2, text, current value = Vehicle05/24/08

I want to update Field1 to '2008-05-24 00:00:00'  extracting the date from Field2 and where Field1='0000-00-00 00:00:00'

I can do this in Access with a combination of Datevalue and Right but I need to run this directly on the MySQL server do to the number of records in the table.

Thanks,

ET
ASKER CERTIFIED SOLUTION
Thomasian

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros