wb.ouyang

毕竟几人真得鹿,不知终日梦为鱼

导航

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 47 下一页

2020年7月5日 #

把select结果update更新到表中,从查询结果中更新数据

摘要: mysql update dw.agt_acco_balance a inner join ( select account_num, sum(actual_recharge_amount) as sum, count(*) from ods.sl_topup_00000000001 b inner 阅读全文

posted @ 2020-07-05 21:39 wenbin_ouyang 阅读(2508) 评论(0) 推荐(0)

2020年7月4日 #

Centos7 调整磁盘空间

摘要: 1. 查看磁盘空间占用情况: df -h 可以看到 /home 有很多剩余空间, / 空间不够。调整目标:将/dev/sda5分成两部分,一部分存原来 /home 的数据,一部分存储 /data(存储在 /dev/sda4) 的数据. 2、备份 /home 下的内容: cp -r /home /ho 阅读全文

posted @ 2020-07-04 17:58 wenbin_ouyang 阅读(898) 评论(0) 推荐(0)

连接greenplum(postgresql)数据库报错:no pg_hba.conf entry for host,以及重启 greenplum

摘要: 解决办法: 修改pg_hba.conf,在第一行添加一行: host all all 0.0.0.0/0 md5 表示允许任何用户连接到任何数据库,用一个加密的密码 完全信任: host all all 0.0.0.0/0 trust 对应 greenplum,搜索 pg_hba.conf 文件 添 阅读全文

posted @ 2020-07-04 10:35 wenbin_ouyang 阅读(3542) 评论(0) 推荐(1)

2020年7月1日 #

扩展vmware centos虚拟机的根目录磁盘空间

摘要: 1、关闭 centos 执行 init 0 2、vmware 扩展该虚拟机的磁盘空间 3、重启虚拟机,查看系统分区情况 指令:df -h 4、创建新的分区 查看分区 fdisk -l 分区 fdisk /dev/sda 输入 m 获取帮助 输入 n 添加分区 输入 p 输入 3 一路回车, 最后输入 阅读全文

posted @ 2020-07-01 13:16 wenbin_ouyang 阅读(1249) 评论(0) 推荐(0)

2020年6月24日 #

SQL Management Studio导出表为 txt,两条记录变成一行

摘要: 1、现象描述 背景描述:SQL Management Studio导出表为 sl_topup.txt后,文本格式为 GBK,使用 python 脚本将 GBK 转成 UTF-8。由于文件太大,内存不够,使用 TXTkiller.exe 拆分 sl_topup.txt 为100 个文件(按行拆分)。 阅读全文

posted @ 2020-06-24 16:25 wenbin_ouyang 阅读(392) 评论(0) 推荐(0)

使用 TXTkiller.exe 拆分大txt文件成多个txt文件

摘要: https://jingyan.baidu.com/article/636f38bb95fb2fd6b946104f.html https://jingyan.baidu.com/article/d45ad14877d46e69542b8041.html 可以按 行数 分割 TXTkiller.ex 阅读全文

posted @ 2020-06-24 10:18 wenbin_ouyang 阅读(5418) 评论(0) 推荐(0)

2020年6月23日 #

批量将.txt编码格式转化为utf8

摘要: 以下是Python3语言,一个文件里有很多个.txt文档,里面编码格式都是ASCII。现需要将这些编码格式转化为utf-8,以下是python3语言编写的脚本,一般只需改变path路径就可以运行。 1、python_utf8.py GB2312/GBK => UTF-8 import os impo 阅读全文

posted @ 2020-06-23 16:20 wenbin_ouyang 阅读(3790) 评论(0) 推荐(0)

详解SQL Server导出表为csv或txt,postgresql导入csv或txt

摘要: 目录: 1、导出SQL Server 数据库的表为 .txt2、源表数据记录中带有空白(对源表进行处理)3、SQL Server 数据库中的记录去掉前后空白4、txt 文件编码 GBK 转成 UTF-85、在 postgresql 新建 test111 数据库,新建表 ods.sl_account_ 阅读全文

posted @ 2020-06-23 11:46 wenbin_ouyang 阅读(6108) 评论(0) 推荐(0)

这个 org.postgresql.jdbc.PgConnection.createClob() 方法尚未被实作

摘要: https://www.jianshu.com/p/1953968bf911 大意就是Hibernate要验证pgsql的一个方法,但是jdbc没有实现,但是这个错误呢并不影响,所以下面的方法把这块验证给屏蔽掉。 logging.level.org.hibernate.engine.jdbc.env 阅读全文

posted @ 2020-06-23 10:55 wenbin_ouyang 阅读(1986) 评论(0) 推荐(0)

2020年6月22日 #

hibernate的 openSession 和 getCurrentSession

摘要: 目录: 1、hibernate执行过程2、getCurrentSession() 与 openSession() 区别3、测试 openSession4、测试 getCurrentSession 4.1、报错:Calling method 'createQuery' is not valid wit 阅读全文

posted @ 2020-06-22 14:21 wenbin_ouyang 阅读(893) 评论(0) 推荐(0)

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 47 下一页