扫一扫,访问微社区
只需一步,快速开始
使用道具 举报
原帖由 大鱼 于 2006-1-11 09:58 发表 存储过程中使用变量的出错问题 declare @v1 int declare @tableName varchar(200) set @tableName='a' set @v1=(exec ('select top 1 max(id) from '+@tableName+' ')) 在一个存储过程中,希望搜索的表 ...
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
用微信扫一扫互动赢积分
|Archiver|手机版|小黑屋|广告业务Q|工大后院 ( 粤ICP备10013660号 )
GMT+8, 2025-5-14 11:24
Powered by Discuz! X3.5
Copyright © 2001-2024 Tencent Cloud.