/* MySQL中的变量局部变量,用户变量,会话变量和全局变量. 用户变量不用定义,直接使用. 1.用户变量赋值 set @xxx = 值; 2.查询 select @xxx; 语法帮助: 过程保存在information_schema.routines表中 help create PROCEDURE help drop PROCEDURE help SET help select help WHILE help if statement help declare bug点: 不同数据库可以存在
变量是什么? 变量的作用 Variables are used to store information to be referenced and manipulated in a computer program. They also provide a way of labeling data with a descriptive name, so our programs can be understood more clearly by the reader and ourselves