目前我正在验证用户登录,因此使用程序将用户名和密码与注册表单进行比较,然后找到记录集值>0(成功)或<0(失败),但我对程序概念不太了解,我尽力了我的水平,但我无法解决这个问题,请帮助我。提前致谢
在这里我试过这个:
Create table signupform (username varchar(10), password varchar(10));
Insert into signupform values ('sampath','s96000');
Insert into signupform values ('yuvaraj','y96297');
select * from signupform;
// CREATE PROCEDURE for compare username and password
create procedure testing (@username varchar(10), @password varchar(10))
AS
BEGIN
select * from signupform where username = @username and password = @password
End;