admin
COPY
Streams rows using the client COPY protocol. Server file paths have different permissions; this example avoids server filesystem writes.
Formal Syntax & Structure
sql syntaxsql
COPY bm_lab.items (id, code, owner_name) TO STDOUT WITH (FORMAT csv);Working Example
Example Snippetsql
-- Disposable PostgreSQL lab only; see LAB.md.COPY bm_lab.items (id, code, owner_name) TO STDOUT WITH (FORMAT csv);