当前位置: 代码迷 >> Sql Server >> 存储过程?该怎么处理
  详细解决方案

存储过程?该怎么处理

热度:72   发布时间:2016-04-27 16:36:45.0
存储过程??
alter   procedure   sp_yh
@uid     varchar(10),
@pwd     varchar(20),
@qx       int
as
insert   into   yh(用户名,密码,权限)  
select   *   from   yh   where   [email protected]   and   [email protected]   and   [email protected]

这是我写的存储过程
exec   sp_yh   '22 ', ' ', ' '
我执行时候,,为什么不能插入记录哦。。


------解决方案--------------------
執行的時候有什麼錯誤提示沒有?

alter procedure sp_yh
@uid varchar(10),
@pwd varchar(20),
@qx int
as
insert into yh(用户名,密码,权限)
select 用户名,密码,权限 from yh where [email protected] and [email protected] and [email protected]
GO
--調用
exec sp_yh '22 ', ' ',0
  相关解决方案