摘要:
oracle for loop 我们在Oracle存储过程中需要遍历一张表,应该怎样做。我想大多少的人第一个念头就是Cursor。 比如: create or replace procedure StudyCursor( resulst out integer ) is v_tablename va 阅读全文
摘要:
众所周知的几个结果集集合操作命令,今天详细地测试了一下,发现一些问题,记录备考。 假设我们有一个表Student,包括以下字段与数据: drop table student; create table student(id int primary key,name nvarchar2(50) not 阅读全文
摘要:
--case语句的种类:1.简单case语句语法: case exp when comexp then returnvalue ... when comexp then returnvalue else returnvalue end case到end之间相当于一个具体的值,可以做运算,取别名,嵌套 阅读全文