date - updating day in mysql -


accidentally server date set wrong value 1 day. have correctly set date now. want change date entries made on day. write query change day 1 of dates in query table on 31st jan 2013.

i have written following query

update query set date= date_add(date, interval 1 day) date="2013-01-31";

but not executing correctly

your code correct. need following change.

update query set date= date_add(date, interval 1 day) date(date)="2013-01-31"; 

i hope works you.


Comments

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -