①直接取②进行运算,注意其中判断是否为空使用DBNull.Value③拼接申请"%>,转换为整型,通过三目运算符进行判断,并且拼接一个字符串链接
分类:
其他好文 时间:
2015-03-11 16:57:19
阅读次数:
124
mvc4: 子页面:@section A{} 母页面:@RenderSection("A",false) false:别的页面没有定义为A的Section的话 也没事,layout不管了 true:没有A的话会报错 @Html.Partial("A"):有返回值,返回到页面,然后拼接输出 @{Htm...
分类:
数据库 时间:
2015-03-11 10:44:16
阅读次数:
167
问题起因:最近做的项目DB数据量比较大(基本上一个月的数据就是10亿),而工程中Proc参数中包含有id拼接字符串,id拼接字符串格式:1,2,4,5,100,301。当数据量很小的情况下,这样做没有问题,但一旦数据量到达亿级,运行会很耗时,比如:当这样的参数id拼接字符串中包含有10万个id的时候...
分类:
数据库 时间:
2015-03-10 21:18:57
阅读次数:
205
1.slice(); Array和String对象都有 在Array中 ?slice(i,[j])? i为开始截取的索引值,负数代表从末尾算起的索引值,-1为倒数第一个元素 j为结束的索引值,缺省时则获取从i到末尾的所有元素 参数返回: 返回索引...
分类:
其他好文 时间:
2015-03-10 19:55:12
阅读次数:
176
简介
这一篇讲下使用opencv来实现图片拼接,也就是常说的取景模式。
在这一篇:http://blog.sina.com.cn/s/blog_4b27c38d01019xlv.html ,有对该模式做基本介绍。
在opencv官网:http://docs.opencv.org/modules/stitching/doc/stitching.html ,有对这一部分的API做全面的基本介绍。...
分类:
其他好文 时间:
2015-03-10 17:29:22
阅读次数:
190
如下例子:
select substr('LL$$BOAT$$he很帅',
1,
instr('LL$$BOAT$$he很帅', '$$', 1, 1) - 1),
substr('LL$$BOAT$$he很帅',
instr('LL$$BOAT$$he很帅', '$$', 1, 1) + ...
分类:
数据库 时间:
2015-03-10 17:14:38
阅读次数:
167
root@debian:~/Workspace# awk ' { if(match($7,"/*\.php*")) { if(index($7,"?")) { print substr($7,0,index($7,"?")) } else { print $7; } } } ' access.log...
分类:
Web程序 时间:
2015-03-10 16:59:17
阅读次数:
130
SELECT substr(sys_connect_by_path(dutywork, ';'), 2)
FROM (select dutywork,rownum rn
from t_test)
WHERE connect_by_isleaf = 1
START WITH rn = 1
CONNECT BY prior rn = rn - 1;
查询表t_t...
分类:
数据库 时间:
2015-03-10 15:31:59
阅读次数:
192
begin/**procedure body**/if(m_parameter='') thenset @sqlStr=concat('select id,title,description,msg,logo,notice,views,grade,commenttimes from kmb01','...
分类:
数据库 时间:
2015-03-10 11:57:56
阅读次数:
268
附截图:当前路径:a=r'D:\PCsync\python\commands' 为绝对路径遍历出来的4条应该是D:\PCsync\python\commands\commands.py....不知道哪里错误了,先记录下来。
分类:
编程语言 时间:
2015-03-10 01:19:39
阅读次数:
928