麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 開發 > 綜合 > 正文

PostgreSQL數據庫psql的使用之二

2024-07-21 02:51:46
字體:
來源:轉載
供稿:網友
[postgres@rhel73 data]$ psql -l       ------->>>查詢默認cluster下的所有數據庫,并退出                                  List of databases   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   access PRivileges   -----------+----------+----------+-------------+-------------+----------------------- 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 | =c/postgres          +           |          |          |             |             | postgres=CTc/postgres test      | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | (4 rows)
[postgres@rhel73 data]$ psql -xl     ------->>>以擴展的形式查詢cluster下的所有數據庫,并退出List of databases-[ RECORD 1 ]-----+----------------------Name              | postgresOwner             | postgresEncoding          | UTF8Collate           | en_US.UTF-8Ctype             | en_US.UTF-8Access privileges | -[ RECORD 2 ]-----+----------------------Name              | template0Owner             | postgresEncoding          | UTF8Collate           | en_US.UTF-8Ctype             | en_US.UTF-8Access privileges | =c/postgres          +                  | postgres=CTc/postgres-[ RECORD 3 ]-----+----------------------Name              | template1Owner             | postgresEncoding          | UTF8Collate           | en_US.UTF-8Ctype             | en_US.UTF-8Access privileges | =c/postgres          +                  | postgres=CTc/postgres-[ RECORD 4 ]-----+----------------------Name              | testOwner             | postgresEncoding          | UTF8Collate           | en_US.UTF-8Ctype             | en_US.UTF-8Access privileges | 
[postgres@rhel73 data]$ psql --help ------------>>>>psql的幫助命令.psql is the PostgreSQL interactive terminal.Usage:  psql [OPTION]... [DBNAME [USERNAME]]General options:  -c, --command=COMMAND    run only single command (SQL or internal) and exit  -d, --dbname=DBNAME      database name to connect to (default: "postgres")  -f, --file=FILENAME      execute commands from file, then exit  -l, --list               list available databases, then exit  -v, --set=, --variable=NAME=VALUE                           set psql variable NAME to VALUE                           (e.g., -v ON_ERROR_STOP=1)  -V, --version            output version information, then exit  -X, --no-psqlrc          do not read startup file (~/.psqlrc)  -1 ("one"), --single-transaction                           execute as a single transaction (if non-interactive)  -?, --help[=options]     show this help, then exit      --help=commands      list backslash commands, then exit      --help=variables     list special variables, then exitInput and output options:  -a, --echo-all           echo all input from script  -b, --echo-errors        echo failed commands  -e, --echo-queries       echo commands sent to server  -E, --echo-hidden        display queries that internal commands generate  -L, --log-file=FILENAME  send session log to file  -n, --no-readline        disable enhanced command line editing (readline)  -o, --output=FILENAME    send query results to file (or |pipe)  -q, --quiet              run quietly (no messages, only query output)  -s, --single-step        single-step mode (confirm each query)  -S, --single-line        single-line mode (end of line terminates SQL command)Output format options:  -A, --no-align           unaligned table output mode  -F, --field-separator=STRING                           field separator for unaligned output (default: "|")  -H, --html               HTML table output mode  -P, --pset=VAR[=ARG]     set printing option VAR to ARG (see /pset command)  -R, --record-separator=STRING                           record separator for unaligned output (default: newline)  -t, --tuples-only        print rows only  -T, --table-attr=TEXT    set HTML table tag attributes (e.g., width, border)  -x, --expanded           turn on expanded table output  -z, --field-separator-zero                           set field separator for unaligned output to zero byte  -0, --record-separator-zero                           set record separator for unaligned output to zero byteConnection options:  -h, --host=HOSTNAME      database server host or socket directory (default: "local socket")  -p, --port=PORT          database server port (default: "5432")  -U, --username=USERNAME  database user name (default: "postgres")  -w, --no-passWord        never prompt for password  -W, --password           force password prompt (should happen automatically)For more information, type "/?" (for internal commands) or "/help" (for SQLcommands) from within psql, or consult the psql section in the PostgreSQLdocumentation.
Report bugs to <[email protected]>.[postgres@rhel73 data]$ psql -V    -------------->>>查看psql版本的命令.psql (PostgreSQL) 9.6.0[postgres@rhel73 data]$
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 国产精选电影免费在线观看网站 | 久久羞羞 | 午夜国产在线 | 99精品视频久久精品视频 | 素人视频在线观看免费 | 国产亚洲精品久久久久婷婷瑜伽 | 午夜久久久精品一区二区三区 | 久久久久久久久久久国产精品 | 亚洲精品成人久久 | 亚洲精品成人18久久久久 | 中文字幕免费播放 | 国产做爰全免费的视频黑人 | 亚洲第一页在线观看 | 久久黄色影院 | 成人免费在线观看视频 | 色污视频在线观看 | 高清一区二区在线观看 | 亚洲午夜电影 | 美女喷水网站 | 亚洲一区二区三区91 | 黄色片网站在线免费观看 | 天天色宗合| 毛片中文字幕 | 国产精选电影免费在线观看 | 日本在线看片 | 2021免费日韩视频网 | 欧美性受xxxxxx黑人xyx性爽 | av影院在线播放 | 亚洲国产美女视频 | 国产成人高清在线 | 国产日韩在线观看视频 | 女人久久久www免费人成看片 | 久久美女免费视频 | 免费午夜视频在线观看 | 久久久久一区 | 麻豆911| 黄色电影免费提供 | 成人男女啪啪免费观看网站四虎 | 欧美精品欧美极品欧美激情 | 免费观看黄色影片 | 久久亚洲春色中文字幕久久 |