易截截图软件、单文件、免安装、纯绿色、仅160KB

自己写的oracle dbms_sql 函数包例子

create or replace procedure pro_insert_dbms
is
cid number;
cid_DDL number;
selectsql varchar2(1000);
ddlsql    varchar2(1000);
row_count number;
nofrows   integer;
lrowid                           rowid;
ddlrows   integer;
errpsn                           integer;
sqlfcd                           integer;
errc                             integer;
errm                             varchar2(2000);
request_id varchar2(100);
deal_name varchar2(100);
member_name varchar2(100);
/*(二)一般过程
对于一般的select操作,如果使用动态的sql语句则需要进行以下几个步骤:
open cursor--->parse--->define column--->excute--->fetch rows--->close cursor;
而对于dml操作(insert,update)则需要进行以下几个步骤:
open cursor--->parse--->bind variable--->execute--->close cursor;
对于delete操作只需要进行以下几个步骤:
open cursor--->parse--->execute--->close cursor;
*/
begin
 dbms_output.put_line('测试dbms_sql包.....');
 delete_commit('delete from test_insert i where i.inner_id=2');
 selectsql:='select i.request_id,i.deal_name,i.member_name  from test_insert i';
         begin
         cid:=dbms_sql.open_cursor;
      


相关文档:

SQL备份与还原经典文档

SQL备份与还原经典文档
======================================================================
SQL备份
======================================================================
----------------------------------------------------------------------
1、SQL数据库恢复模型
------------------------------ ......

Sql Server2000,Sql Server2005中的表结构的相关信息

Sql Server2005的:
SELECT
TableName=CASE WHEN C.column_id=1 THEN O.name ELSE N'' END,
TableDesc=ISNULL(CASE WHEN C.column_id=1 THEN PTB.[value] END,N''),
Column_id=C.column_id,
ColumnName=C.name,
PrimaryKey=ISNULL(IDX.PrimaryKey,N''),
[IDENTITY]=CASE WHEN C.is_identity=1 THEN N'√' ......

Sql Server 2008 Reporting Services系列(一)

一、了解Reporting Services
     Sqlserver Reporting Services是微软的数据库报表设计工具,它集成在微软的商业智能开发工具:SQL Server Business Intelligence Development Studio之中,这个工具其实就是大家熟悉的Visual Studio,利用Reporting Services我么能够高效的开发数据报表,Reporting S ......

oracle 中的导入导出

exp document/document2009@document owner=document rows=y compress=y buffer=65536 feedback=100000 file=D:\document.dmp log=D:\document.log
exp whd/whd2009@whddb owner=whd rows=y compress=y buffer=65536 feedback=100000 file=D:\whd.dmp log=D:\whd.log
imp document/document2009@document fromuser=docume ......

oracle plsql 存储过程常用例子


  Author:qinyangzhao                                  
   describe:PL/SQL记录记录 (type is  ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号