随笔分类 -  mysql / mysql混合语句

摘要:CASE语句 CASE case_value WHEN when_value THEN statement_list [WHEN when_value THEN statement_list] ... [ELSE statement_list] END CASE CASE WHEN search_c 阅读全文
posted @ 2020-08-18 08:50 wongchaofan 阅读(152) 评论(0) 推荐(0) 编辑
摘要:Local Variable DECLARE Statement DECLARE var_name [, var_name] ... type [DEFAULT value] 该语句在存储的程序中声明局部变量。要提供变量的默认值,请包含一个 DEFAULT子句。该值可以指定为表达式;它不必是常数。如 阅读全文
posted @ 2020-08-18 08:06 wongchaofan 阅读(134) 评论(0) 推荐(0) 编辑
摘要:[begin_label:] BEGIN [statement_list] END [end_label] [begin_label:] LOOP statement_list END LOOP [end_label] [begin_label:] REPEAT statement_list UNT 阅读全文
posted @ 2020-08-18 07:26 wongchaofan 阅读(108) 评论(0) 推荐(0) 编辑
摘要:[begin_label:] BEGIN [statement_list] END [end_label] BEGIN ... END 语法用于编写复合语句,复合语句可以出现在存储程序(存储过程和函数,触发器和事件)中。复合语句可以包含多个语句,并用BEGIN和 END关键字括起来。 stateme 阅读全文
posted @ 2020-08-18 07:16 wongchaofan 阅读(265) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示