目前共有1篇帖子。 內容轉換:不轉換▼
 
點擊 回復
298 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)
 

本帖信息

點擊數:298 回複數:0
評論數: ?
作者: 巨大八爪鱼
最後回復:巨大八爪鱼
最後回復時間:2015-6-22 19:52
 
©2010-2024 Arslanbar Ver2.0
除非另有聲明,本站採用創用CC姓名標示-相同方式分享 3.0 Unported許可協議進行許可。