日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)PostgreSQL教程PostgreSQL選擇數(shù)據(jù)庫

PostgreSQL 選擇數(shù)據(jù)庫

上一章節(jié)我們講了如何創(chuàng)建數(shù)據(jù)庫,接下來我們來討論如何去選擇我們創(chuàng)建的數(shù)據(jù)庫。

數(shù)據(jù)庫的命令窗口

PostgreSQL 命令窗口中,我們可以命令提示符后面輸入 SQL 語句:

postgres=#

使用 \l 用于查看已經(jīng)存在的數(shù)據(jù)庫:

postgres=# \l
                             List of databases
   Name    |  Owner   | Encoding | Collate | Ctype |   Access privileges   
-----------+----------+----------+---------+-------+-----------------------
 postgres  | postgres | UTF8     | C       | C     | 
 runoobdb  | postgres | UTF8     | C       | C     | 
 template0 | postgres | UTF8     | C       | C     | =c/postgres          +
           |          |          |         |       | postgres=CTc/postgres
 template1 | postgres | UTF8     | C       | C     | =c/postgres          +
           |          |          |         |       | postgres=CTc/postgres
(4 rows)

接下來我們可以使用 \c + 數(shù)據(jù)庫名 來進(jìn)入數(shù)據(jù)庫:

postgres=# \c runoobdb
You are now connected to database "runoobdb" as user "postgres".
runoobdb=# 

系統(tǒng)命令行窗口

在系統(tǒng)的命令行查看,我么可以在連接數(shù)據(jù)庫后面添加數(shù)據(jù)庫名來選擇數(shù)據(jù)庫:

$ psql -h localhost -p 5432 -U postgres runoobdb
Password for user postgres: ****
psql (11.3)
Type "help" for help.
You are now connected to database "runoobdb" as user "postgres".
runoobdb=# 

pgAdmin 工具

pgAdmin 工具更簡單了,直接點(diǎn)擊數(shù)據(jù)庫選擇就好了,還可以查看一些數(shù)據(jù)庫額外的信息:


分享標(biāo)題:創(chuàng)新互聯(lián)PostgreSQL教程PostgreSQL選擇數(shù)據(jù)庫
URL標(biāo)題:http://www.5511xx.com/article/cdhdjsj.html