标题: oracle与sql server逻辑控制语句 [打印本页] 作者: 张兴康 时间: 2020-3-28 14:54 标题: oracle与sql server逻辑控制语句 1. 控制结构:
Oracle:
If condition then ........
End if
Case selector
when exp1 then statements
Else statements
End case
SQL SERVER:
IF condition
Sql statements
ELSE
Sql statements
Case selector
When ex1 then statements
Else statements
End
2. 迭代结构
oracle:
Loop statements end loop;
While condition
Loop statement end loop;
Sql server:
While condition
Begin
Sql statement
End