0
推荐
1257
阅读

pyenv + python 2.7.12 + cx_oracle + instantclient_11_2

1. pyenv + python 2.7.12 环境2. 安装 cx_Oracle python -m pip install cx_Oracle --upgrade 参考https://cx-oracle.readthedocs.io/en/latest/installation.html#id103. 下载安装instantclient_11_2http://download.oracle.com/otn/linux/instantclient/11204/instantclient-basic-linux.x64-11.2.0.4.0.zi...

发表了文章 • 2019-07-17 10:37 • 0 条评论

0
推荐
1849
阅读

数据库大小写敏感问题

摘自 https://blog.csdn.net/houseq/article/details/39481047Oracle:            默认是大小写不敏感,表名、字段名等不区分大小写,小写字母会自动转换为大写字母; 需要用小写字母时需要使用双引号,或借助函數upper()和lower();PostgreSQL:         ...

发表了文章 • 2019-01-27 17:44 • 0 条评论

0
推荐
1586
阅读

修改postgresql配置

# 总核数 = 物理CPU个数 X 每颗物理CPU的核数 # 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数# 查看系统版本信息 lsb_release -a # 查看物理CPU个数 cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l # 查看每个物理CPU中core的个数(即核数) cat /proc/cpuinfo| grep "cpu cores"| uniq # ...

发表了文章 • 2019-01-14 16:04 • 0 条评论

0
推荐
1327
阅读

Oracle 选择当前日期前一周的数据

select * from sales_table where day_field between to_number(to_char(sysdate - 7, 'yyyymmdd')) and to_number(to_char(sysdate, 'yyyymmdd'))其中,day_cd 形如 20181123,若day_cd 形如 2018-11-23,则为如下语句:select * from sales_table where day_field between to_number(to_char(sysdate - 7, 'yyyy-mm-dd...

发表了文章 • 2018-11-23 15:20 • 0 条评论

0
推荐
1653
阅读

python连数据库

1. 连Oracle数据库     import cx_oraclehttps://blog.csdn.net/neweastsun/article/details/51852304https://www.oracle.com/technetwork/cn/tutorials/229069-zhs.htm2. 连postgresql数据库       import psycopg2

发表了文章 • 2018-10-31 18:01 • 0 条评论

0
推荐
2156
阅读

行转列 vs 列转行: Oracle和postgre的做法

https://www.cnblogs.com/lottu/p/5666706.html

发表了文章 • 2018-09-29 18:53 • 0 条评论

1
推荐
2105
阅读

postgresql数据库创建123

summary:安装:客户端、服务器创建用户:系统用户、数据库用户创建数据库修改数据库用户密码修改数据库用户访问数据库的权限切换系统用户登录控制台登录数据库--------------------------------------------------------1. 安装postgresql客户端:sudo apt-get install postgresql-client安装postgresql服务器:sudo ap...

发表了文章 • 2017-11-21 11:34 • 0 条评论