私は mysql に 2 つのカーソルを持っています。何か案が?例を前もってありがとう:-
DECLARE email_not_found INT DEFAULT 0;
DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET email_not_found = 1;
open cur1;
open cur2;
REPEAT
FETCH cur1 INTO s1;
REPEAT
FETCH cur2 INTO s2;
if s1=s2
do something.
UNTIL email_not_found=1 END REPEAT;
UNTIL email_not_found=1 END REPEAT;
close cur1;
close cur2;