create or replace procedure testwzm(v_gdjdm in varchar2) isv_id varchar2(10);v_xlname varchar2(100);v_count number(4);beginv_count:=0;//定义游标declare cu...
分类:
数据库 时间:
2015-01-20 17:16:54
阅读次数:
179
用过strings.NewReplacer,replacer.Replace(),它按对传入参数后,能依优先级替换,并能处理中文字符串参数.
觉得功能强大,特别好用.对它的查找和优先级怎么处理有点兴趣,花时间研究了下源码,在这记录一下个人理解.
package main
//author:xcl
//2014-1-20 记录
import (
"fmt"
"strings"...
分类:
编程语言 时间:
2015-01-20 15:46:20
阅读次数:
143
传递时 brand_name.replace(/\s/g,"+") brand_name是要传递的参数,意识是将空格用+号代替接收时var brand_name = getRequestParas('brand_name').replace(/\+/g," "); 意思是接收时用空格将+号代替
分类:
Web程序 时间:
2015-01-20 15:30:52
阅读次数:
119
放假之前准备啃完Chart.js的源码(好难啃%>_)[^\t]*)'/g, "$1\r") .replace(/\t=(.*?)%>/g, "',$1,'") .split("\t").join("');") .split("%>").join...
分类:
编程语言 时间:
2015-01-19 18:35:43
阅读次数:
205
python把文件中的邮箱分类保存到相应的文件里面(测试数据100W数据时间10秒)#coding:utf-8
importtime
importlinecache
defreadfile(file):
#读取数据
list_dict={}
file_data=[x.replace(‘\n‘,‘‘)forxinlinecache.getlines(file)if‘@‘inx]
#把后缀名组成字典中的keys,按照..
分类:
编程语言 时间:
2015-01-19 06:57:53
阅读次数:
202
mixed preg_replace ( mixed pattern, mixed replacement, mixed subject [, int limit])功能在 subject 中搜索 pattern 模式的匹配项并替换为 replacement。如果指定了 limit,则仅替换 lim...
分类:
Web程序 时间:
2015-01-19 00:13:11
阅读次数:
305
--IFELSEDECLARE V_NUM NUMBER;BEGIN V_NUM := 100; IF V_NUM > 100 THEN -- ELSIF V_NUM > 50 THEN -- ELSE -- END IF;END;--带参数存储过程CREATE OR REPLACE PROC...
分类:
数据库 时间:
2015-01-18 22:34:24
阅读次数:
157
<?phpfunction my_str_replace($xmlHttp,$order='asc'){ if($order=='asc'){ return str_replace(array('||','|','#','@'),array('//','/','&','='),$...
分类:
Web程序 时间:
2015-01-18 00:46:05
阅读次数:
186
定义和用法
open() 方法可打开一个新文档,并擦除当前文档的内容。
语法
document.open(mimetype,replace)
参数
描述
mimetype
可选。规定正在写的文档的类型。默认值是 "text/html"。
replace
可选。当此参数设置后,可引起新文档从父文档继承历史条目。
说明
该方法将擦除当前 H...
分类:
Web程序 时间:
2015-01-17 01:03:32
阅读次数:
282
命令
:%s/pattern//gn
参数说明
% - 操作区间,全文本;可以使用1, $或行区间替代
s - substitute
pattern - 查询字符串
// - 无替代文本。如果偏好,中间可以加任意字符!建议添加‘~’,重复上次查询
g - Replace all occurrences in the line. Without this argument, rep...
分类:
系统相关 时间:
2015-01-16 19:19:23
阅读次数:
457