上一页 1 ··· 199 200 201 202 203 204 205 206 207 ··· 337 下一页
摘要: INSERT INTO table (a,b,c) VALUES (1,2,3) ON DUPLICATE KEY UPDATE c=c+1;INSERT 中 ON DUPLICATE KEY UPDATE的使用如果指定了ON DUPLICATE KEY UPDATE,并且插入行后会导致在一个UN... 阅读全文
posted @ 2014-07-19 12:48 emanlee 阅读(32983) 评论(0) 推荐(1)
摘要: string1.equals(string2) 比较字符串 substring()它有两种形式,第一种是:String substring(int startIndex)第二种是:String substring(int startIndex,int endIndex) 注意:从位置0开始,包含st 阅读全文
posted @ 2014-07-18 17:16 emanlee 阅读(484) 评论(0) 推荐(0)
摘要: int iValue = new Integer(strValue).intValue();String str = intObj.toString();int number = Integer.parseInt(str);public static Object read(String value... 阅读全文
posted @ 2014-07-18 14:39 emanlee 阅读(229) 评论(0) 推荐(0)
摘要: use Time::HiRes qw(time);use POSIX qw(strftime);my $t = time;my $date = strftime "%Y%m%d %H:%M:%S", localtime $t;$date .= sprintf ".%03d", ($t-int($t) 阅读全文
posted @ 2014-07-16 15:02 emanlee 阅读(2679) 评论(0) 推荐(0)
摘要: my $filename='/tmp/tmp.txt';open my $fh, '>', $filename;my $fd = fileno $fh;print readlink("/proc/$$/fd/$fd"); 阅读全文
posted @ 2014-07-15 13:46 emanlee 阅读(277) 评论(0) 推荐(0)
摘要: Perl File Handling: open, read, write and close files # Opening files Solution 1: Opening a file in perl open FILE, "filename.txt" or die $!; # read o 阅读全文
posted @ 2014-07-15 08:32 emanlee 阅读(1368) 评论(0) 推荐(0)
摘要: Arithmetic OperatorsOperatorDescription+addition-subtraction*multiplication/division^ or ** exponentiationx %% y modulus (x mod y) 5%%2 is 1x %/% y in... 阅读全文
posted @ 2014-07-12 19:09 emanlee 阅读(1165) 评论(0) 推荐(0)
摘要: $ echo $((20.0/7))$ zcalc$ bc <<< 20+5/2$ bc <<< 'scale=4;20+5/2'$ expr 20 + 5$ calc 2 + 4$ node -pe 20+5/2 # Uses the power of JavaScript, e.g. : no... 阅读全文
posted @ 2014-07-10 12:10 emanlee 阅读(615) 评论(0) 推荐(0)
摘要: Grep 'OR' Operator grep 与“或”一起用Find all the lines in a file, that match any of the following patterns.Using GREP command :grep "pattern1\|pattern2" fi 阅读全文
posted @ 2014-07-09 15:41 emanlee 阅读(1706) 评论(0) 推荐(1)
摘要: 关于打印毕业设计资料1 全部资料都是16开打印。2 封面,标签页,指导老师评语,评阅人评语,答辩考核意见, 单面打印; 其余全部双面。3 要打印的资料:(1)任务书(含任务,评阅人评语,指导老师评语,答辩考核,进度表)注:评阅人评语,指导老师评语,答辩考核: 要填写班级,姓名,题目;学生签字的地方要... 阅读全文
posted @ 2014-06-20 11:08 emanlee 阅读(871) 评论(0) 推荐(0)
上一页 1 ··· 199 200 201 202 203 204 205 206 207 ··· 337 下一页