目录 分支结构 循环结构 分支结构: 1.if condition then [statement] elseif condition then [statement] else [statement] end if 实例:求两个数中的最大值,如果两个数据相等,则返回0,不相等,则返回最大值 delimiter // -- 把默认的结束符;替换成// create function test_if(a int,b int) returns int BEGIN ; -- 下面为分支结构 if a…