set stmt=select * from tablename;
prepare s1 from stmt;
declare aa cursor for s1;
open aa;
fetch aa into name,age ; aa值传给 nage ,age;
set stmt=select * from tablename;
prepare s1 from stmt;
declare aa cursor for s1;
open aa;
fetch aa into name,age ; aa值传给 nage ,age;