Hi,
THis is want I want to acheive - I want to search on a date field where all values are more then 1 day ago and to then update all those value by one year.
How do I use a SQL select to select all the correct date I need?
Rgds
Chris
Hi,
THis is want I want to acheive - I want to search on a date field where all values are more then 1 day ago and to then update all those value by one year.
How do I use a SQL select to select all the correct date I need?
Rgds
Chris
Hello,
Something like,
UPDATE tablename SET field_name = DATE_ADD(field_name,INTERVAL 1 YEAR) WHERE field_name < CURDATE();
Thumbs up.
Skype ID - david__boris
SugarForge Projects:
WYSIWYG now in studio!(Version 1.1 is out now!)
Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.
Fab Tools! > Dashlet Not Followed Opportunities for past six Months
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks