Look for info on the MySQL statement "set". For example: set @age := 25; ... where old @age ... You may need to be careful that the variables are the correct type. For example set @age="25" won't do a numeric comparison and set @age=fred won't do a string comparison.
↧