一.for…in 结构 for i in 0...4{ print(i) //使用到了变量 i } for _ in 0...1{ // 后期没有使用到变量,可以直接用个下划线 _ 占位就行了 print("hello") } 二.while 结构 var i : Int = 0 while i < 5 { print("a") i += 1 } //repeat…while 结构 (相当于do...while) var j : Int = 0…
pl/sql的控制结构if-then if-then-else if-then-elsif-else 案例1:编写一个过程,可以输入一个雇员名,如果该雇员的工资低于2000,就给该雇员工资增加10% create or replace procedure mypro(spName varchar2) is v_sal emp.sal%type begin select sal into v_sal from emp where ename = spName then update emp set…