【1】lambda表达式语法定义 lambda表达式的语法定义如下: [capture] (parameters) mutable ->return-type {statement}; (1) [capture]: 捕捉列表。捕捉列表总是出现在lambda函数的开始处。实质上,[]是lambd...
分类:
编程语言 时间:
2015-01-18 16:54:48
阅读次数:
225
简介:[capture](parameter) mutable ->return_type {statement}[capture]:捕获列表,是lambda函数的引出符号,从上下文中捕捉变量以供函数使用。 [var]:值传递捕捉变量var; [=]:值传递捕捉所有父作用域变量; [&var]...
分类:
编程语言 时间:
2015-01-18 08:12:09
阅读次数:
223
两种模式的对比:Statement优点历史悠久,技术成熟;产生的binlog文件较小;binlog中包含了所有数据库修改信息,可以据此来审核数据库的安全等情况;binlog可以用于实时的还原,而不仅仅用于复制;主从版本可以不一样,从服务器版本可以比主服务器版本高;Statement缺点:不是..
分类:
其他好文 时间:
2015-01-17 19:36:30
阅读次数:
454
雖然理想上,使用者要的資料最好都是由系統產生報表,使用者直接瀏覽或下載,但是,使用者常臨時要一些業績或管理性報表,IT 人員也只能從資料庫中下 sql statement 後匯出給使用者,有時,IT 人員更可能拿到別家公司匯出的數個 csv 檔,使用者卻希望將它們合併成一個檔案,當然,一般情況 IT...
分类:
其他好文 时间:
2015-01-16 20:45:33
阅读次数:
122
case语句结构: caseSWITCHin value1) statement ... ;; value2) statement ... ;; *) statement ... ;; esac联系: 1.接受从键盘上输入的字符,并作出判断是数字、大小写字母或特殊字符。 #!/bin/bash case$1in [0-9]) echo"adigit" ;; [A-Z]) echo"aUpper..
分类:
其他好文 时间:
2015-01-16 19:27:00
阅读次数:
245
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement to be ambiguo...
分类:
其他好文 时间:
2015-01-16 16:49:43
阅读次数:
153
Oracle为DML操作自动获取行锁和表锁,操作的类型决定了锁的行为,下面对DML操作锁的情况作了一个汇总:
SQL Statement
Row Locks
Table Lock Mode
RS
RX
S
SRX
X
SELECT ... FROM table...
——
none
Y
Y
Y
Y
Y
INSERT INTO...
分类:
数据库 时间:
2015-01-14 16:52:36
阅读次数:
143
使用postgresql向客端推送消息
#listen message_channel;
notify message_channel,'hello todd';
jdbc:
Statement stmt = conn.createStatement();
stmt.execute("LISTEN message_channel");
stmt.close();
no...
分类:
数据库 时间:
2015-01-13 19:58:45
阅读次数:
179
1.BNF范式(语法规则)%token T_PAAMAYIM_NEKUDOTAYIM ":: (T_PAAMAYIM_NEKUDOTAYIM)"%token T_EXTENDS "extends (T_EXTENDS)"unticked_class_declaration_statement: .....
分类:
Web程序 时间:
2015-01-13 00:00:03
阅读次数:
425
1、错误描述:输入url,浏览器报404错误控制台报错信息有:Did not find handler method for错误原因:没有在controller中加上注解 @Controller 所以Spring容器不会识别该处理方法;2、错误描述:Invalid bound statement (...
分类:
其他好文 时间:
2015-01-12 19:08:40
阅读次数:
111