上一页 1 ··· 86 87 88 89 90 91 92 93 94 ··· 205 下一页
摘要: 程序: #!/bin/bash function showAlertMsg(){ echo -e "\e[1;31m"$1"\e[0m" } function showHighlightMsg(){ echo -e "\e[1;32m"$1"\e[0m" } echo "Hello,world" e 阅读全文
posted @ 2020-03-21 17:06 逆火狂飙 阅读(255) 评论(0) 推荐(0)
摘要: String的format语法搭配转化符,在格式化输出方面效果特别好,值得掌握。 例程: System.out.println(" C1 | C2 | C3 |"); int a=10,b=20,c=30; String str=String.format("%10s%10s%10s",a,b,c) 阅读全文
posted @ 2020-03-21 08:29 逆火狂飙 阅读(436) 评论(0) 推荐(0)
摘要: 转载地址: https://blog.csdn.net/qq_39017218/article/details/80042287 printf的格式控制的完整格式: % - 0 m.n l或h 格式字符 下面对组成格式说明的各项加以说明: ①%:表示格式说明的起始符号,不可缺少。 ②-:有-表示左对 阅读全文
posted @ 2020-03-21 08:11 逆火狂飙 阅读(593) 评论(0) 推荐(0)
摘要: 此文章是 https://www.cnblogs.com/xiandedanteng/p/12525063.html 一文的后续,解决问题的关键还是在于basicdate,基本上把上一篇看懂了,这一篇也就很快懂了。 建表: create table hy_login_flow( id number( 阅读全文
posted @ 2020-03-21 08:02 逆火狂飙 阅读(312) 评论(0) 推荐(0)
摘要: 有一个用户登录流水表结构如下: create table hy_login_flow( id number(4,0) not null primary key, name nvarchar2(20) not null, logindate date not null) 这样给它充值: insert 阅读全文
posted @ 2020-03-19 16:20 逆火狂飙 阅读(1158) 评论(0) 推荐(0)
摘要: 代码: #!/bin/bash ls=$(ls) echo $ls whoami=`whoami` echo $whoami 执行结果: [os-××××××××101z ~]$ sh cmd2.sh 1.py 2020-03-16-b020 AllocationReq_0030_202003061 阅读全文
posted @ 2020-03-18 17:20 逆火狂飙 阅读(1187) 评论(0) 推荐(0)
摘要: 树形查询一般用于上下级场合,使用的特殊sql语法包括level,prior,start with,connect by等,下面将就实例来说明其用法。 表定义: create table tb_hierarchy( id number(4,0) primary key, name nvarchar2( 阅读全文
posted @ 2020-03-18 15:08 逆火狂飙 阅读(1436) 评论(1) 推荐(0)
摘要: 某目录下有个test.txt,内容如下: www.stg.comwwstgcom 如果我这样去查找: $ grep '.stg.' test.txtwww.stg.comwwstgcom 发现第二个匹配与预想不符,之所以找出来是因为grep支持正则式,"."可以和任意字符匹配。 因此要用下面的方式去 阅读全文
posted @ 2020-03-18 14:19 逆火狂飙 阅读(218) 评论(0) 推荐(0)
摘要: 代码: #!/bin/bash hostname=$(hostname) #调用hostname命令获取主机名放入变量hostname中 #echo $hostname if [ `echo ${hostname} | grep "\.stg\."` ]; then #如果hostname变量中含有 阅读全文
posted @ 2020-03-18 09:43 逆火狂飙 阅读(525) 评论(0) 推荐(0)
摘要: 实验用表: create table hy_emp( id number(7,0) not null primary key, deptid number(2,0) not null, name nvarchar2(20) not null) 充值: insert into hy_emp selec 阅读全文
posted @ 2020-03-17 17:10 逆火狂飙 阅读(2783) 评论(0) 推荐(0)
上一页 1 ··· 86 87 88 89 90 91 92 93 94 ··· 205 下一页