set @posted = 'post_'+ @MONTHNO set @sql =('select '+@posted+' from mumonth where year ='+@ACTIVEYEAR) set @poststatus = (@sql)