Hi,
In a table i have [stupidly] stored a date in separate month and year field, now i want to merge those fields and put them in a date field
have tried the following which puts the year in the date field - but how do i add the month aswell
[the day should be set to 01]
thanks MG
In a table i have [stupidly] stored a date in separate month and year field, now i want to merge those fields and put them in a date field
have tried the following which puts the year in the date field - but how do i add the month aswell
[the day should be set to 01]
Code:
update table set dateadd = str_to_date(yearadd,'%Y')
thanks MG