SQL exec 报错 找不到存储过程 'select * from TEMP_byhktb20191213104416697'

set @strSql1 = 'select * from '+ @TEMP_byhktb
print @strSql1    
exec @strSql1
set @strSql1 = 'drop table '+ @TEMP_byhktb
print @strSql1    
exec @strSql1
    

原因:

exec 需要括号   
exec (@strSql1)
原文地址:https://www.cnblogs.com/xiaobaidejiucuoben/p/12033897.html