连接相关:
psql testdb,系统登录用户,本地数据库,连接testdb数据库
psql -U testuser testdb,用户testuser,连接本地数据库testdb;
psql -U testuser -h 172.28.18.51 testdb,用户testuser,连接远程testdb数据库;
列举数据库:/l
选择数据库:/c 数据库名
显示表结构信息:/d 表名
退出psgl:/q
显示字符集:/encoding
连接相关:
psql testdb,系统登录用户,本地数据库,连接testdb数据库
psql -U testuser testdb,用户testuser,连接本地数据库testdb;
psql -U testuser -h 172.28.18.51 testdb,用户testuser,连接远程testdb数据库;
列举数据库:/l
选择数据库:/c 数据库名
显示表结构信息:/d 表名
退出psgl:/q
显示字符集:/encoding