当前位置: 代码迷 >> DB2 >> DB2 while 写法,该如何处理
  详细解决方案

DB2 while 写法,该如何处理

热度:1472   发布时间:2013-02-26 00:00:00.0
DB2 while 写法
如何 求DB2 自定义函数中while写法 

哪个高手帮个忙 谢谢

------解决方案--------------------------------------------------------
http://publib.boulder.ibm.com/infocenter/db2luw/v9/topic/com.ibm.db2.udb.admin.doc/doc/r0005655.htm?resultof=%22%77%68%69%6c%65%22%20

http://publib.boulder.ibm.com/infocenter/db2luw/v9/topic/com.ibm.db2.udb.apdv.sql.doc/doc/c0024353.htm?resultof=%22%77%68%69%6c%65%22%20

WHILE v_counter < (v_numRecords / 2 + 1) DO
FETCH c1 INTO medianSalary;
SET v_counter = v_counter + 1;
END WHILE;
  相关解决方案