Guest User

Untitled

a guest
Oct 20th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. drop table if exists my_table cascade;
  2. create table my_table(id int, str text);
  3. copy my_table from stdin;
  4. 1 a
  5. 2 b
  6. .
  7. select * from my_table;
  8.  
  9. $ psql -f /data/script.sql test postgres
  10. DROP TABLE
  11. CREATE TABLE
  12. COPY 2
  13. id | str
  14. ----+-----
  15. 1 | a
  16. 2 | b
  17. (2 rows)
Add Comment
Please, Sign In to add comment