用事物實現登陸

2021-06-11 11:22:42 字數 1010 閱讀 2210

1.在ado中使用儲存過程

use userdb1

select * from t_users

create proc usp_login

@uname varchar(50),

@password varchar(50),

@result  bit output----布林型別的引數,是用來返回值的,設定儲存使用者登入是否成功1---true,0------false

as begin

declare @count int

set @count=( select count(*) from t_users where fusername=@uname and fpassword=@password)

if @count>0

begin

set @result=1

endelse

begin

set  @result=0

endend

declare @r bit

exec  usp_login @uname='admin321232','111',@r output

print @r

print @@servername

btnclick

else}}

create proc usp_denglu

@username2 nvarchar(10),

@password varchar(20),

@result bit output

asbegin

declare @count int

set @count= (select * from t_user where @username2=username and @password=password)

if @count>0

begin

print '登陸成功'

endelse

begin

print '登入失敗'

endend

BW 常用事物碼

事務 al11 sap directories 檢視檔案路徑 spro 源系統中使用者 sbiw 從ecc中複製datasource se01 不同使用者的傳輸請求 se03 解除傳輸鎖定物件 se09 transport organizer 釋放傳輸請求 se10 傳輸請求號 se30 程式執行時...

登陸mysql s MySQL登陸退出

單例項登陸mysql mysql mysql uroot 適合剛安裝後無密碼 mysql uroot p 標準登陸的方法 mysql uroot p password 密碼明文會洩露密碼,一般用於指令碼中,指令碼許可權root 700 多例項登陸mysql mysql s data 3307 mys...

expect實現自動登陸

1.首先安裝expect2.指令碼編寫,下面是乙個通過ssh登陸遠端機器 gll5530 的例子,密碼 wzj.1989 opt exptools bin expect f set timeout 30 spawn ssh gll5530 expect password send wzj.1989 ...