PostgreSQL基本命令
2016-07-26 15:34
169 查看
1.Linux下查看是否开启
lsof -i:5432
2.可以用postgresql自带psql程序,导入sql语句
psql -U username -W -d dbname -f xx.sql
3.psql远程登录命令
psql -h xxxxx -U dbuser -p port -d dbname.
4替换为空字符查询(oracle为ORACLE 有NVL函数)
CASE WHEN D.wk_ptn_cd IS NULL THEN '00' ELSE D.wk_ptn_cd END AS wk_ptn_cd
select COALESCE(D.wk_ptn_cd, '00') as wk_ptn_cd
阅读更多
相关文章推荐
- PostgreSQL基本命令
- PostgreSQL中的基本命令总结
- PostgreSql基本命令
- 【PostgreSQL】PostgreSQL操作-psql基本命令
- PostgreSQL操作-psql基本命令
- 【db课程实习】PostgreSQL基本命令
- postgresql基本命令操作
- postgresql基本命令
- PostgreSQL数据库基本命令(转http://netocool.blog.51cto.com/61250/98649,以备用)
- PostgreSQL基本命令
- [整理]postgresql基本使用命令
- git基本命令
- MYSQL基本命令(二)
- Linux常用基本命令
- 130+vim基本命令
- DOS基本命令(扩展部分)
- postgresql基本操作
- linux初学(一)之命令行bash的基本操作
- 【Linux】linux常用基本命令
- 嵌入式学习历程【2】 Linux的基本命令