I\'m trying to create a table with a name based on the current year and month(2011-09), but MySQL doesn\'t seem to like this.
2011-09
SET @yyyy_mm=Year(
set @yyyy_mm=concat(year(now()),'-',month(now())); set @str = concat('create table survery.`', @yyyy_mm,'` like survey.interim;'); prepare stmt from @str; execute stmt; deallocate prepare stmt;