Change order in Chapter 18 psql command file
This commit is contained in:
parent
80ae2a4b77
commit
43acc65358
@ -16,6 +16,12 @@ psql -d analysis -U postgres
|
|||||||
psql -d [database name] -U [username] -h [host name]
|
psql -d [database name] -U [username] -h [host name]
|
||||||
psql -d analysis -U postgres -h example.com
|
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)
|
-- Format for password file (pgpass.conf on Windows; .pgpass on macOS/Linux)
|
||||||
hostname:port:database:username:password
|
hostname:port:database:username:password
|
||||||
|
|
||||||
@ -87,13 +93,6 @@ SELECT * FROM grades ORDER BY student_id, course_id;
|
|||||||
|
|
||||||
createdb -U postgres -e box_office
|
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
|
-- Loading shapefiles into PostgreSQL
|
||||||
|
|
||||||
-- For the US Census county shapefile in Chapter 14:
|
-- For the US Census county shapefile in Chapter 14:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user