Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. Report bugs to <pgsql-bugs@postgresql.org>.
  2. (base) Alexanders-MacBook-Pro:sep-database alexanderpritchard$ creatdb -U postgres -w library
  3. -bash: creatdb: command not found
  4. (base) Alexanders-MacBook-Pro:sep-database alexanderpritchard$ createdb -U postgres -w library
  5. (base) Alexanders-MacBook-Pro:sep-database alexanderpritchard$ psql -f /Users/alexanderpritchard/bloc/code/sep-database/library-data.sql library postgres
  6. CREATE TABLE
  7. INSERT 0 4
  8. (base) Alexanders-MacBook-Pro:sep-database alexanderpritchard$ psql library postgres
  9. psql (11.5)
  10. Type "help" for help.
  11.  
  12. library=# SELECT * from books;
  13. id | title | author
  14. ------+------------------------------------------+---------------------
  15. 1259 | Eloquent Ruby | Russell A. Olson
  16. 1593 | JavaScript: The Good Parts | Douglas Crockford
  17. 8982 | Designing Object-Oriented Software | Rebecca Wirfs-Brock
  18. 7265 | Practical Object-Oriented Design in Ruby | Sandi Metz
  19. (4 rows)
  20.  
  21. library=#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement