这是我的代码片段:
Set cmd = Server.CreateObject("ADODB.Command")
cmd.ActiveConnection = objCon
cmd.CommandType = 4
cmd.CommandText = "SP_USERLOGIN"
response.Write(p_user_id)
cmd.Parameters.Append cmd.CreateParameter ("User_locked",adVarChar, adParamInput)
cmd.parameters(0).value = p_user_id
cmd.Execute
当我尝试附加参数时,出现以下错误:
参数类型错误、超出可接受范围或相互冲突。
我的存储过程只需要 1 个参数:
create or replace PROCEDURE SP_USERLOGIN ( User_locked VARCHAR2 ) as
BEGIN
update tusers Set user_account_status='status' where user_id = User_locked;
commit;
END;