不同程序之间经常会交换数据,我们经常采用的套路是: 假设要传输的信息是json,我们假设其为json_data,通过http传递信息为 json_data_encode=json_data&sign=md5(json_data+key) 接收方通过验证sign就知道内容有没有被篡改. 但是,这样js ...
分类:
微信 时间:
2018-09-27 00:06:20
阅读次数:
308
一、字符函数字符函数是oracle中最常用的函数,我们来看看有哪些字符函数:lower(char):将字符串转化为小写的格式。upper(char):将字符串转化为大写的格式。length(char):返回字符串的长度。substr(char, m, n):截取字符串的子串,n代表取n个字符的意思, ...
分类:
数据库 时间:
2018-09-25 19:32:46
阅读次数:
167
function numTransfrom(num){let int,float,strArr,str="";function numb(int, str, len){ let i = len - 3; if (i > 0) { str = "," + int.substr(i, 3).concat ...
分类:
其他好文 时间:
2018-09-25 12:39:51
阅读次数:
174
Find All Anagrams in a String: https://leetcode.com/problems/find-all-anagrams-in-a-string/description/ Minimum Window Substring: https://leetcode.com ...
Problem3:Longest Substring Without Repeating Characters ...
分类:
其他好文 时间:
2018-09-24 12:46:50
阅读次数:
125
/** * 输入整数n * 输入整数个字符串 * 求每个字符串的的最长公共子字符串(从下标0开始)且不是其它字符串的前缀 * * 例: * 输入: * 5 * bcd * abcd * abce * hgfs * hgab * * 输出: * b * abc * abc * hg * hg */ i... ...
分类:
编程语言 时间:
2018-09-22 01:07:11
阅读次数:
184
REGEXP_SUBSTR函数格式如下: function REGEXP_SUBSTR(String, pattern, position, occurrence, modifier) __srcstr :需要进行正则处理的字符串 __pattern :进行匹配的正则表达式 __position : ...
分类:
其他好文 时间:
2018-09-21 00:39:55
阅读次数:
212
1.substr var str = "Hello world!"; document.write(str.substr(3)); 输出:lo world! var str = "Hello world!"; document.write(str.substr(3,7)); 输出:lo worl 2... ...
分类:
Web程序 时间:
2018-09-21 00:36:27
阅读次数:
229
问题:varchar2类型转换成date类型 select to_date(INVOICE_DATE,'yyyy-mm-dd') from tab; 提示 ORA-01830: 日期格式图片在转换整个输入字符串之前结束 错误 最后查的原因:INVOICE_DATE=‘2005-11-10 00:00 ...
分类:
其他好文 时间:
2018-09-18 20:47:27
阅读次数:
224
SELECT REGEXP_SUBSTR('17,20,23', '[^,]+', 1, LEVEL, 'i') AS STR FROM DUAL CONNECT BY LEVEL <= LENGTH('17,20,23') - LENGTH(REGEXP_REPLACE('17,20,23', ' ...
分类:
其他好文 时间:
2018-09-18 14:22:08
阅读次数:
162