~~鱼跃~~

I Want to fly!

导航

2006年4月24日

摘要: create procedure p1@parm1 varchar(20) outputasset @parm1='AAAAAA'gocreate procedure p2asdeclare @tmp varchar(20)exec p1 @tmp outputselect @tmpgo--测试exec p2 阅读全文

posted @ 2006-04-24 23:52 flyfish 阅读(380) 评论(0) 推荐(0) 编辑

摘要: 执行如下SQL declare @t int exec('set @t=1') print(@t) 报如下错误! 服务器: 消息 137,级别 15,状态 2,行 1 必须声明变量 '@t'。 实际就是变量与动态语句不能共享, 那么换成这样就行, declare @t int set @t=1 print(@t) 或 exec('declare @t int; s... 阅读全文

posted @ 2006-04-24 20:56 flyfish 阅读(658) 评论(0) 推荐(0) 编辑