If...Else

作者: 吱吱_呀 | 来源:发表于2022-10-09 14:24 被阅读0次

判断语句。不能用在SELECT中,只能用在块结构中,例:
IF (判断条件)

BEGIN 

...(代码块)

END

ELSE (注意这里没有ELSE IF,要实现只能在下面的块中用IF判断

BEGIN 

...(代码块)

END

注:使用字符串拼接时,若前后拼接的字段类型不一致,会报错,需要进行数据转换

相关文章

  • js 总结三 7-11

    条件、循环 条件if if...else if...else if...else 循环for for..in while

  • 每天总结三

    条件语句if if...else if...else if...else 循环语句for for..in while

  • Swift 条件语句

    if 语句 if...else 语句 if...else if...else 语句 switch 语句 这里我们需...

  • sql server 流程控制语句

    流程控制语句:begin...end、if、if...else、if...else if...else if......

  • 【二】条件与循环语句

    条件与循环语句 if语句 if...else if...else if...else switch语句 例如: 判...

  • switch语句

    switch:同样功能的还有:if...else if...else if...else 使用swith的优点:增...

  • Java 语句结构

    条件语句 单if语句: if...else语句 if...else if...else 语句if 语句后面可以跟 ...

  • typescript笔记(三)

    一、条件语句:if语句、if...else语句、if...else if...else语句、switch语句; 1...

  • 实训 - 3(17.08.04)

    分支结构 if if...else if...else if switch...case if(条件表达式...

  • js 语句

    1,if...else... 2,if...else if...else 3,switch语句 4, for 循环...

网友评论

      本文标题:If...Else

      本文链接:https://www.haomeiwen.com/subject/pkwfartx.html