将字符串形式的日期转换成日期对象var strTime="2011-04-16"; //字符串日期格式var date= new Date(Date.parse(strTime.replace(/-/g,"/"))); //转换成Data();var month=date.getMonth()+1;...
分类:
Web程序 时间:
2015-12-22 21:28:08
阅读次数:
180
数据字段为varchar类型的,格式:20110228 151010想进行时间比较,搜索一个范围内的时间select * from table where'20120102' <`time`<'20120109'SELECT * FROM `table`WHERE replace( `otime` ...
分类:
数据库 时间:
2015-12-22 19:10:39
阅读次数:
156
/// /// 过滤空格、换行、script、style等等标签/// /// html的内容/// 处理后的文本internal static string SHTML(string html){ html = html.Trim(); html = html.Replace(@"/]*?...
select 'T.SYMPTOM like ' || ' or '|| REPLACE( '''%' ||REPLACE ( REPLACE( '1,2,4' , ',' , ',''%'), ',''' ,',''' )||'%''' , ',''', '%'' or T.SYMPTOM lik...
分类:
数据库 时间:
2015-12-21 14:01:01
阅读次数:
186
本文转自:http://blog.csdn.net/chendi1985/article/details/5291773window.location方法获取URL统一资源定位符 (Uniform Resource Locator, URL)完整的URL由这几个部分构成:scheme://host:...
先看一下效果 在百度经验找到一个教程,可惜,根据实践发现方法是错误的, 百度经验上的代码:123456789101112//标签tag所包含的文章数量function Tagno($text) {$text = preg_replace_callback('||i', 'tagnoCallback....
分类:
其他好文 时间:
2015-12-20 17:11:47
阅读次数:
151
隐藏转跳,浏览器不产生历史记录(replace)。代码片段:window.location.replace("http://insus.cnblogs.com");当然我们还不能忘记常用的a标签(href)。代码片段:window.location.href = "http://insus.cnbl...
分类:
Web程序 时间:
2015-12-19 09:51:41
阅读次数:
171
Replace INTO和INSERT INTO的区别:REPLACE的运行与INSERT很相似。只有一点例外,假如表中的一个旧记录与一个用于PRIMARY KEY或一个UNIQUE索引的新记录具有相同的值,则在新记录被插入之前,旧记录被删除。注意,除非表有一个PRIMARY KEY或UNIQUE索...
分类:
其他好文 时间:
2015-12-18 21:13:01
阅读次数:
215
Oracle:create or replace procedure get_needQuery_Balance(v_num in number,v_result out number) is--declare veriables--declare cursor--begin begin--tran...
分类:
其他好文 时间:
2015-12-18 13:12:04
阅读次数:
113
Oracle经常使用函数 ——TRUNC,TO_DATE,TO_CHAR,TO_NUMBER, SUBSTR,REPLACE。NVL。TRIM,wm_concat,upper, lower,length,add_months(sysdate,1)查看oracle版本号: SELECT * from ...
分类:
数据库 时间:
2015-12-18 13:03:55
阅读次数:
227