复杂sql语句和存储过程.pptVIP

  • 11
  • 0
  • 约1.06万字
  • 约 60页
  • 2019-09-10 发布于江西
  • 举报
oracle if then end if; if then else End if; if then elsif then end if; case语句 Sql编程 例子: declare @szbz int set @szbz=3 if @szbz=1 select szbz=1 else if @szbz=2 select szbz=2 else select szbz=3 Sql编程 set serveroutput on declare szbz int; begin szbz:=3; if szbz=1 then dbms_output.put_line(szbz=1); elsif szbz=2 then dbms_output.put_line(szbz=2); else dbms_output.put_line(szbz=3); end if; end; / Sql编程 case语句 case n when 1 then Action1; when 2 then Action2; when 3 then Action3; else ActionOther; end case; Case --CASE 表达式 when n = 1 then Action1; when n = 2 th

文档评论(0)

1亿VIP精品文档

相关文档