摘要: Perforce settings such as port, user, and workspace names using the following methods, listed in order of precedence:1.On the command line, using flags2.In a config file, if P4CONFIG is set3.User environment variables (on UNIX or Windows)4.System environment variables (on Windows, system-wide enviro 阅读全文
posted @ 2013-06-26 22:56 iTech 阅读(2097) 评论(0) 推荐(0) 编辑
摘要: 1 时间如果是从当前时间到前一个月的这个时候之间的记录总条数:selectcount(1)fromuis_md_stcustomuwherefirsttimebetweenadd_months(sysdate,-1)andsysdate;如果是求当前时间的前面一个月的内的记录总条数:selectcount(1)fromuis_md_stcustomuwhereto_char(firsttime,'mm')=to_char(add_months(sysdate,-1),'mm');2 IN/ANYIN- Equal toany member in the list 阅读全文
posted @ 2013-06-26 22:48 iTech 阅读(880) 评论(0) 推荐(0) 编辑
摘要: 1 去除一个数组中的重复元素:使用grep函数代码片段: 代码:my @array = ( 'a', 'b', 'c', 'a', 'd', 1, 2, 5, 1, 5 ); my %count; my @uniq_times = grep { ++$count{ $_ } $max; }知道的这样搞:use List::Util qw(max);my $max_num = max( 0 .. 1000 );知道的他们还这样搞: use List::Util qw(maxstr);my $max_str = max 阅读全文
posted @ 2013-06-26 22:32 iTech 阅读(4753) 评论(0) 推荐(0) 编辑