We help IT Professionals succeed at work.

mySQL update insert

stargateatlantis
on
Medium Priority
251 Views
Last Modified: 2012-05-11
I am trying to execute this mySQL statement here but it isn't working here is the code


Open in new window

UPDATE LISTINGS SET creationDate = (SELECT CONCAT('-','year','month','day') from LISTINGS);

basically its a old table that has YY,MM,DD in separate columns i want to combine them into one field called creationDate with the proper mySQL date format.  
Comment
Watch Question

Aaron TomoskyDirector, SD-WAN Solutions
CERTIFIED EXPERT

Commented:
Get rid of the select, from listings.
Data Engineer
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.