摘要: 1、指定日期月第一天: select to_char(trunc(to_date('201806','yyyymm'),'mm'),'yyyymmdd') from dual; 2、指定日期月最后一天 select to_char(last_day(to_date('201806','yyyymm' 阅读全文
posted @ 2019-03-26 17:34 Alisonman 阅读(1255) 评论(0) 推荐(0) 编辑
摘要: python 对Oracle数据库操作需要安装cx_Oracle 包 # -*- coding: utf-8 -*-"""Created on Tue Mar 26 10:27:26 2019 @author: Alisonman""" import cx_Oracledb=cx_Oracle.co 阅读全文
posted @ 2019-03-26 17:23 Alisonman 阅读(333) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-"""Created on Tue Mar 26 11:43:49 2019 @author: Alisonman""" import re #引用re类import random #引用random类 def phone_pat(): #定义手机号码验 阅读全文
posted @ 2019-03-26 17:16 Alisonman 阅读(1441) 评论(0) 推荐(0) 编辑
摘要: exec用法1、ls -l 命令放在find命令的-exec选项中find . -type f -exec ls -l {} \;2、在目录中查找更改时间在n日以前的文件并删除它们find . -type f -mtime +14 -exec rm {} \;3、在目录中查找更改时间在n日以前的文件 阅读全文
posted @ 2018-04-20 11:03 Alisonman 阅读(381) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bashfiledir=tablename=inm=`awk '$2=="'${tablename}'" { if ($6=="1"){print $6 }else{ print $6} }' 入库关系对应表.txt` #确认增量,全量ses=`awk '$2=="'${tablena 阅读全文
posted @ 2018-04-13 18:12 Alisonman 阅读(211) 评论(0) 推荐(0) 编辑