会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
与你零接触--Vihone
博客园
首页
新随笔
联系
订阅
管理
2010年1月18日
在存储过程中如何拼接字符串参数
摘要: 示例一、declare @strWhere varchar(1000)set @strWhere = 'cat2.CategoryName = '''+'手机'+''' and Quantity > 10' --cat2为表名--exec dbo.UP_GetInventoryByPage 2,3, @strWhereprint(@strWhere)示例二、declare @Sql varc...
阅读全文
posted @ 2010-01-18 15:14 Vihone
阅读(14373)
评论(0)
推荐(0)
编辑
公告