array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } 111string(0) "" int(1) int(10) int(70) int(8640000) string(13) "likecs_art_db" array(1) { ["query"]=> array(1) { ["match_all"]=> object(stdClass)#29 (0) { } } } array(1) { ["createtime.keyword"]=> array(1) { ["order"]=> string(4) "desc" } } int(10) int(0) int(8640000) array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } 存储过程调用 - 爱码网
----创建存储过程


create procedure login(@user varchar(50),@pwd varchar(50) ,@blnReturn int output)
as
Declare @_user varchar(50),@_pwd varchar(50)

begin
   
     
select  @_pwd=[pwd]  from tb_Admin where [user]=@_user
 
if @_pwd=@pwd
         
  
begin 
 
    
     
set   @blnReturn= 1

     
   
end 
   
else
    
set @blnReturn=0

end




----查询分析器中调试存储过程
declare @return int

exec login  'hnlyw''7FEF6171469E80D32C0559F88B377245'@return output
   
print @return

 

 

].Value);
    }

 

相关文章: