存储过程中使用表名为参数alter proc AnalysisPhoneModel @phonenum char(11),@mytablename char(100)
存储过程中使用表名为参数
as 
存储过程中使用表名为参数
exec('select * from '+@mytablename+' where phonenum='+@phonenum)

相关文章:

  • 2022-12-23
  • 2021-06-12
  • 2021-06-25
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-04-15
相关资源
相似解决方案