http://dev.mysql.com/doc/refman/5.7/en/declare-local-variable.html

http://dev.mysql.com/doc/refman/5.7/en/set-variable.html

 

SET Syntax for Variable Assignment

 Local Variable DECLARE Syntax

DECLARE var_name [, var_name] ... type [DEFAULT value]
This statement declares local variables within stored programs.

SET variable_assignment [, variable_assignment] ...

variable_assignment:
      user_var_name = expr
    | param_name = expr
    | local_var_name = expr
    | [GLOBAL | SESSION]
        system_var_name = expr
    | [@@global. | @@session. | @@]
        system_var_name = expr

SET syntax for variable assignment enables you to assign values to different types of variables that affect the operation of the server or clients:

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2022-01-19
  • 2021-10-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2022-12-23
  • 2021-04-06
  • 2021-08-03
  • 2022-12-23
相关资源
相似解决方案