mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-10 09:35:54 +02:00
psql: use here-strings instead of echo
This commit is contained in:
parent
82564bd222
commit
b74dff1d79
1 changed files with 2 additions and 2 deletions
|
@ -14,6 +14,6 @@
|
|||
|
||||
`psql -c '{{query}}' {{database}}`
|
||||
|
||||
- Run semicolon-separated *queries* against the given *database*. Note: useful in shell scripts
|
||||
- Run several queries against the given *database*. Note: useful in shell scripts
|
||||
|
||||
`echo '{{queries}}' | psql {{database}}`
|
||||
`psql {{database}} <<< "{{query1}}; {{query2}}"`
|
Loading…
Add table
Reference in a new issue