Skip to content

Instantly share code, notes, and snippets.

@Kelvin-Lei
Kelvin-Lei / gist:59304c816e7e57824865
Created March 15, 2016 09:20
C#通过OpenXML将Dataset导出Excel(适用大数据量导出)
// #define INCLUDE_WEB_FUNCTIONS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Data;
using System.Reflection;
using DocumentFormat.OpenXml.Packaging;
--SID使用数据库的某个用户的当前会话ID
--sid:session的id
--serial#:sid的序列号,因为可能有些会话的sid相同,sid可以重复使用,以后使用已经使用过的sid时,serial#会递增
--附:用于确定锁住数据库对象的锁的SQL
SELECT c.owner
,c.object_name
,c.object_type
,b.sid
,b.serial#
@Kelvin-Lei
Kelvin-Lei / gist:f673d52d2306b08b6f51
Created November 16, 2015 03:43
ORACLE DB发送HTTP请求
/*==================================
ORACLE DB SEND GET HTTP REQUEST
====================================*/
DECLARE
l_req utl_http.req;
l_resp utl_http.resp;
l_url VARCHAR2(200);
l_resp_txt VARCHAR2(30000);
BEGIN
l_url := 'http://127.0.0.1/IK2WorkflowService/Test/?id=102';