📜  在 mysql 代码示例中声明做了什么

📅  最后修改于: 2022-03-11 15:05:22.810000             🧑  作者: Mango

代码示例1
-- MySQL

DECLARE variable_name datatype(size) [DEFAULT default_value];
-- Declaring a variable without specifying a default value will result it
-- in being a null value.
-- Declare is what allows us to create a variable