Change order in Chapter 18 psql command file

This commit is contained in:
anthonydb 2021-05-28 06:40:18 -04:00
parent 80ae2a4b77
commit 43acc65358

View File

@ -16,6 +16,12 @@ psql -d analysis -U postgres
psql -d [database name] -U [username] -h [host name]
psql -d analysis -U postgres -h example.com
-- Changing user and database name
\c [database name] [user name]
\c test
\c test yourname
-- Format for password file (pgpass.conf on Windows; .pgpass on macOS/Linux)
hostname:port:database:username:password
@ -87,13 +93,6 @@ SELECT * FROM grades ORDER BY student_id, course_id;
createdb -U postgres -e box_office
-- Changing user and database name
\c [database name] [user name]
\c box_office
\c box_office yourname
-- Loading shapefiles into PostgreSQL
-- For the US Census county shapefile in Chapter 14: