You are on page 1of 1

declare

uname login.username%type;
pass login.username%type;
begin
select username, password into uname,pass from login
where username=:username
and password=:password;
if :username=uname and
:password=pass then
message('valid user');
message('valid user');
go_block('');
execute_query;
end if;
exception
when no_data_found then
message('invalid user');
message('invalid user');
end;

You might also like