摘要: FileInfo fi = new FileInfo(fileName);//excelFile为文件在服务器上的地址 HttpResponse contextResponse = HttpContext.Current.Response; contextResponse.Clear(); cont 阅读全文
posted @ 2017-05-08 11:09 萌橙 阅读(191) 评论(0) 推荐(0) 编辑
摘要: var str = "01abc23中文4567中ad文89中文"; str=str.replace(/[^\x00-\xff]/g,"$&\x01").replace(/.{10}\x01?/g,"$&\n").replace(/\x01/g,""); alert(str); 阅读全文
posted @ 2017-05-05 14:04 萌橙 阅读(3701) 评论(0) 推荐(0) 编辑
摘要: function ChangeDateFormat(time) { if (time != null) { var date = new Date(parseInt(time.replace("/Date(", "").replace(")/", ""), 10)); var month = dat 阅读全文
posted @ 2017-05-05 13:34 萌橙 阅读(158) 评论(0) 推荐(0) 编辑
摘要: create or replace trigger tr_tb_if_archivesafter inserton tb_if_archivesfor each rowdeclarepragma autonomous_transaction;beginPro_fdn_costuser(:new.BZ 阅读全文
posted @ 2017-05-03 16:49 萌橙 阅读(1095) 评论(0) 推荐(0) 编辑
摘要: Oracle PL/SQL编程之八: 把触发器说透 本篇主要内容如下: 8.1 触发器类型 8.1.1 DML触发器 8.1.2 替代触发器 8.1.3 系统触发器 8.2 创建触发器 8.2.1 触发器触发次序 8.2.2 创建DML触发器 8.2.3 创建替代(INSTEAD OF)触发器 8. 阅读全文
posted @ 2017-05-03 16:45 萌橙 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 有一个表名为tb,字段段名为name,数据类型nchar(20)。 1、假设字段数据为空,则不管改为什么字段类型,可以直接执行: alter table tb modify (name nvarchar2(20)); 2、假设字段有数据,则改为nvarchar2(20)可以直接执行: alter t 阅读全文
posted @ 2017-05-03 15:43 萌橙 阅读(4545) 评论(0) 推荐(0) 编辑
摘要: create or replace PROCEDURE Pro_fdn_costuser (v_BZBM in tb_if_archives.BZBM%type,v_BZMC in tb_if_archives.BZMC%type,v_CJBM in tb_if_archives.CJBM%type 阅读全文
posted @ 2017-05-03 09:43 萌橙 阅读(168) 评论(0) 推荐(0) 编辑
摘要: declare v_cnt number; V_SQL VARCHAR2 (500) := '';begin select count(*) into v_cnt from dual where exists(SELECT * FROM USER_TAB_COLUMNS WHERE TABLE_NA 阅读全文
posted @ 2017-04-28 09:26 萌橙 阅读(1062) 评论(0) 推荐(0) 编辑
摘要: ="insert into tb_fdn_deviceaccount (zdmc,czmc,sbbh,sbmc,SZCS,SBFLMC,SBLXMC,SBGG,SBYZ,SBJZ,SBXH,SBZL,ZZDW,ZZNY,PPMC,GZYL,EDDY,SBGL,SYNY,SYR,JSZTMC,SBBD 阅读全文
posted @ 2017-04-27 10:33 萌橙 阅读(1547) 评论(0) 推荐(0) 编辑
摘要: ceil和floor函数在一些业务数据的时候,有时还是很有用的。 ceil(n) 取大于等于数值n的最小整数; floor(n)取小于等于数值n的最大整数 如下例子 SQL> select ceil(9.5) from dual; CEIL(9.5) 10 SQL> select floor(9.5 阅读全文
posted @ 2017-04-21 10:35 萌橙 阅读(36112) 评论(3) 推荐(0) 编辑