在块中使用select 语句只能返回一条记录 ,并都需要赋值
所以当有多条记录时就需要加条件,并各个列赋值
如:
select user_no into 变量名 from user where userid='xxx'