declare @nowtbmonth varchar(20)
execute(' declare mycursor CURSOR FOR
select distinct aaa as tablelist from '+@nowtbmonth+' order by tablelist')open mycursor
execute(' declare mycursor CURSOR FOR
select distinct aaa as tablelist from '+@nowtbmonth+' order by tablelist')open mycursor
按你的方法搞定了!