1. -- 定义变量
    2. declare 变量名 类型;
    3. -- 给变量赋值
    4. set 变量名 = 值;
    5. -- table表中的id列值赋给变量
    6. select id into 变量名 from table;