diff --git a/pages/common/psql.md b/pages/common/psql.md index 45ed18ac65..1f9d30ea28 100644 --- a/pages/common/psql.md +++ b/pages/common/psql.md @@ -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}}` \ No newline at end of file +`psql {{database}} <<< "{{query1}}; {{query2}}"` \ No newline at end of file