作者共发了1篇帖子。 内容转换:不转换▼
 
点击 回复
331 0
PostgreSQL 列舉數據庫(\l)和數據表(\d)
一派护法 十九级
1楼 发表于:2015-6-22 19:52
mydb=# \l
                                    List of databases
      Name      |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   
----------------+----------+----------+-------------+-------------+-----------------------
 mcu            | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 mydb           | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 postgres       | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 template0      | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
                |          |          |             |             | postgres=CTc/postgres
 template1      | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | postgres=CTc/postgres+
                |          |          |             |             | =c/postgres
 test           | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 tieba_20100706 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
(7 rows)

mydb=# \d
          List of relations
 Schema |   Name   | Type  |  Owner   
--------+----------+-------+----------
 public | capitals | table | postgres
 public | cities   | table | postgres
 public | weather  | table | postgres
(3 rows)

mydb=#

回复帖子

内容:
用户名: 您目前是匿名发表
验证码:
(快捷键:Ctrl+Enter)
 

本帖信息

点击数:331 回复数:0
评论数: ?
作者:巨大八爪鱼
最后回复:巨大八爪鱼
最后回复时间:2015-6-22 19:52
 
©2010-2024 Arslanbar Ver2.0
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。