---
title: "Oracle plsql后台程序建议"
author: "lxf3339"
date: "2011-03-02T12:03:17Z"
tags: []
categories: ["数据库"]
slug: "oracle-plsql"
draft: true
lastmod: "2011-03-02T12:07:48Z"
id: 938091
url: "https://lanse.iteye.com/blog/938091"
---

个人改进建议:

 

１、游标取数时，采用批量取数的方法：  
 fetch cur bulk collect into (nested table/varray/index table) limit 1000;

 

２、UPDATE、INSERT语句采用动态SQL：

 execute immediate 'update table set col1 = :x,col2 = :y, ...' using v1,v2,...;