CREATE procedure mycreate @chlk varchar(1024) ,@chtp varchar(2) ,@cc int (),@mydes varchar(500)as
select count(*) into cc from w1 where lk=@chlk;
if cc=0
insert into w1 (lk,tp,des) values (@chlk,@chtp,@mydes);
GO
提示cc数据类型无效
...全文
24回复打赏收藏
看看我的储存过程 错在哪里
CREATE procedure mycreate @chlk varchar(1024) ,@chtp varchar(2) ,@cc int (),@mydes varchar(500)as select count(*) into cc from w1 where lk=@chlk; if cc=0 insert into w1 (lk,tp,des) values (@chlk,@chtp,@mydes); GO 提示cc数据类型无效