Practicing with PostgreSQL server with psql.
-
How to create database, schema, table
-
How to populate table with data
-
How to update table with data
- \l : list database
- \c database_name : connect to database_name
- CREATE/DROP DATABASE database_name
- \d : list relations(tables) within the database
- \i file_path : run sql script of the file path
- SELECT * FROM TABLE OFFSET 5 : select every rows from id 6 to the end
- \d table_name: describe table with column names, types, etc
- \x : for extended display