General options: wwwxbs666999com 17008768000 execute commands
-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 >
-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 exit
Input 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
--csv CSV (Comma-Separated Values) 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 byte
Connection 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 SQL
commands) from within psql, or consult the psql section in the PostgreSQL
documentation.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69993647/viewspace-2751628/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [Bash] while & until commandsWhile
- [Bash] ps & pgrep commands
- Vim tips——Working with external commands
- Animal Controller文件——GeneralController
- linux general protection faultLinux
- 『演算法』general演算法
- SAP Spartacus 中的 Commands and queries
- Cypress系列(63)- 使用 Custom Commands
- 測試laravel commands的方法Laravel
- General->Identity->VersionIDE
- ffmpeg Advanced options
- Flutter Analysis OptionsFlutter
- 4.5.1.2.1 Syntax and Options
- 4.5.1.4.1 Syntax and Options
- MySQL8.0:The General Query LogMySql
- What are general rules when deciding on index?Index
- General Bayesian Estimators (MMSE, MAP, LMMSE)
- Net6 Configuration & Options 原始碼分析 Part2 Options原始碼
- JavaScript select options 集合JavaScript
- [20210426]execute immediate.txt
- app:processReleaseResources, Failed to execute aaptAPPAIAPT
- 亨利集團@17008768000
- 開啟 mysql 的 general_logMySql
- ios-Multiple commands produced error xcode 10 [duplicate]iOSErrorXCode
- 刪除_JAVA_OPTIONSJava
- [轉]Golang Functional Options PatternGolangFunction
- Performance and High-Availability OptionsORMAI
- idea VM Options 設定Idea
- i_init_func_execute_data
- mysql5.7 General tablespace使用說明MySql
- Run-time Settings--General--Run Logic
- Conversion to Dalvik format failed: Unable to execute dexORMAI
- Apache httpclient的execute方法除錯ApacheHTTPclient除錯
- 載入驅動三種execute
- [20180321]toad下execute as script的fetch
- WEB安全~X-Frame-OptionsWeb
- EXECUTE IMMEDIATE 儲存過程中 許可權不足及EXECUTE IMMEDIATE的除錯避坑儲存過程除錯
- MySQL的general_log和slow_logMySql