- 博客(4)
- 收藏
- 关注
原创 python时间格式
1. 日期输出格式化 datetime => stringimport datetimenow = datetime.datetime.now()now.strftime('%Y-%m-%d %H:%M:%S') 输出'2015-04-07 19:11:21'strftime是datetime类的实例方法。 2. 日期输出格式化 s...
2017-01-17 10:35:27 76
原创 cx_Oracle增删改查
import cx_Oracle连接dsn=cx_Oracle.makedsn(host, int(port), dbname)self.conn = cx_Oracle.connect(user, passwd ,dsn)self.cursor = self.conn.cursor()插def insert(self, sql, param, flag = True)...
2017-01-06 13:08:30 1362
原创 oracle数据库创建表、序列、视图、约束要点
1. 系统开发的阶段: Strategy and Analysis Design Build and Document Transition Production 2. 数据模型 Model of system in client's mind Entity model of client's model Table model of entity mo...
2017-01-05 15:28:21 170
原创 oracle基本语句以及函数
1.. 处理NULL NVL函数可把NULL转换成其它类型的符号 编程技巧: NVL函数在多条件模糊查询的时候比较有用 NVL函数可返回多种数据类型: 返回日期 NVL(start_date,'2002-02-01') 返回字符串 NVL(title,'no title') 返回数字 NVL(salary,1000) 2. 按指定的规则排序 SELECT expr ...
2017-01-05 15:25:36 135
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人