MySQL5.7中英对照文档_用户变量 User-Defined Variables
You can store a value in a user-defined variable in one statement and refer to it later in another statement. This enables you to pass values from one statement to another.可以先在一个语句中保存用户变量的值,然后再另一个语句中...