1、删除含有指定字符串的行替换: ^.*(指定字符串).*$ 为空例如,删除含有"JOIN"的行, 替换: ^.*JOIN.*$ 为空2、删除//行注释替换: //.*$ 为空(需注意,此正则会误删在引号中的'//', 如 'http://www' )3、删除/*...*/段注释替换: //*.*/...
分类:
其他好文 时间:
2014-10-14 17:24:58
阅读次数:
290
SparkStreaming是一个对实时数据流进行高通量、容错处理的流式处理系统,可以对多种数据源(如Kdfka、Flume、Twitter、Zero和TCP 套接字)进行类似map、reduce、join、window等复杂操作,并将结果保存到外部文件系统、数据库或应用到实时仪表盘。Spark S...
分类:
Web程序 时间:
2014-10-13 22:30:37
阅读次数:
500
1. 三表联合查询select XX,XX from a , b , c笛卡尔积,等同于cross join4. cross join--列出两边所有组合,也叫笛卡尔集A.Rows * B.Rowsselect *from Sales S cross join Customers C5. inner...
分类:
数据库 时间:
2014-10-13 19:14:56
阅读次数:
209
代码:/// /// 分类检索 查询selectname/// public static DataTable GetSelectName_FLJS(string thing_type_id, string men_id, string gang_id, string mu_id, string k...
分类:
数据库 时间:
2014-10-13 17:33:19
阅读次数:
254
那天的题挺简单的下面来看下 No1 If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. .....
分类:
其他好文 时间:
2014-10-12 22:14:38
阅读次数:
424
select a.receiveID,(a.num - IFNULL(b.num,0)) as num from (SELECT num,receiveID from dog_giftnumrecord where giftID = 1) as a left join (SELECT num,rec...
分类:
数据库 时间:
2014-10-11 21:50:16
阅读次数:
377
引自:http://bbs.tianya.cn/post-414-38497-1.shtml方法一: var ary = new Array("111","22","33","111"); var s = ary.join(",")+","; for(var i=0;i-1) { ...
分类:
编程语言 时间:
2014-10-11 19:07:06
阅读次数:
205
用Python有一段时间,后来又在用PHP写脚本,两者混用还是有点凌乱,记录下一些有用的点滴吧。 #?dict输出key:value?key:value?…?形式:
print?‘?‘.join([str(x)+‘:‘+str(y)?for?x,y?in?dic.items()])...
分类:
编程语言 时间:
2014-10-11 15:42:45
阅读次数:
202
inner join(等值连接) 仅仅返回两个表中联结字段相等的行 left join(左联接) 返回包含左表中的全部记录和右表中联结字段相等的记录right join(右联接) 返回包含右表中的全部记录和左表中联结字段相等的记录INNER JOIN 语法:INNER JOIN 连接两个数据表的使用...
分类:
数据库 时间:
2014-10-10 23:08:14
阅读次数:
273
今天帮开发人员优化SQL,发现一个以前不怎么在意的问题SELECT
bond.store_no
FROM
bill_order_num_dtlbond
WHEREEXISTS
(select1
frommeetorder_staff_dtlb,
meetorder_staffa
whereb.operate_area=bond.store_no
anda.seq_no=b.seq_no
anda.user_code=‘lym‘
);查询需要2S,bill..
分类:
其他好文 时间:
2014-10-10 21:31:44
阅读次数:
289