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

📅  最后修改于: 2022-03-11 15:04:55.059000             🧑  作者: 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