Hello in a test database i have only one row in the table customer.I have created a stored procedure to do some work. Every time i execute this query
select count(*) from Customer where Email= ....
in my database i get a count 0 but in my stored procedure the result is always 1 without any error.This is the code inside my stored procedure.
BEGIN
START TRANSACTION;
SET @var=(select count(*) from Customer where Email=email);
select @var;
if (@var>0) then
update Customer Set Password=temppass,TemporaryPassword=temppass where
Email=email;
COMMIT;
ELSE
ROLLBACK;
END IF;
END
Any ideas please?Thanks!