- 博客(4)
- 收藏
- 关注
原创 postgresql修改字段类型为时间类型报错
sql:alter table tablename alter ds type date; ERROR: column "ds" cannot be cast automatically to type dateHINT: You might need to specify "USING ds::date".解决:改为alter table tablename alter ds t...
2018-09-04 16:35:44
8278
1
原创 字符串中的不可见字符
最近用datax导入数据到pipeline的时候,碰到一个报脏数据的错误,检查后发现字符串包含\u0000和\u007f,就以为是这两个unicode字符搞的鬼,写了正则 unicode.replaceAll("[\\s+[\\u007f]\\s+]", "") 来匹配,还是会报脏数据,原始的字符串是下面这个样子的:12345678 \u0000 \u007f 这里能看到方框,在...
2018-08-09 10:22:28
6322
原创 Windows7下安装POSTGRESQL10.4
环境:Win7 64位安装程序:postgresql-10.4-1-windows-x64.exe1.打开https://www.postgresql.org/download/选择Windows后,我选的是下载一个安装程序,也可以下载压缩包再自己配置,这个以后尝试下。 2.选择需要的版本和操作系统,我选了最新的10.4,操作系统是x86-64(这个页面加载了好久好久= =...
2018-07-23 11:12:15
2617
原创 postgresql安装错误Problem running post-install step. Installation may not complete correctly.
环境:Win7 64位安装程序:postgresql-10.4-1-windows-x64.exe错误提示:Problem running post-install step. Installation may not complete correctly. The database cluster initialisation failed.解决:网上说locale选择Chi...
2018-07-23 10:52:22
24979
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人