Data Strucure in C
CtrlK
  • Week01 Memory Allocation Notes
    • Vector and Set Implementation
  • Week01 Lab Notes
    • Object Oriented C Programming
  • Week02 List Notes
    • How Deque is Implemented in C++:
    • Circular Doubly Linked List using Sentinel
  • Week02 Lab Notes
    • Are You Going to Write A Script Interpreter for the Language Design Module ?
  • Week03 Tree Notes
  • Week03 Lab Notes
  • Week 04 Graph Notes
  • Week04 Lab Notes
  • Week 05 Graph Notes
  • Week05 Lab Notes
  • Week06 Hashing Notes
  • Week06 Lab Notes
  • Week07 Notes
  • Week07 Lab Notes
    • Week07 Complexity Analysis
  • Week09 notes
  • Week09 Lab Notes
    • Import bookshop database with pqAdmin
    • psql console
  • Week 10 Lab Notes
Powered by GitBook
On this page
  1. Week09 Lab Notes

psql console

  1. Start a Windows command console or powershell

  2. Connect to PostgreSQL with

psql -U postgres

The password is CompSys2025!

  1. List databases

\list

or

\l
  1. Connect to database bookshop

\c bookshop
  1. Display tables in database bookshop

\dt

or

\dt+
  1. Show table schemas

\d tablename
  1. Run your SQL statements, such as

SELECT * from books
PreviousImport bookshop database with pqAdminNextWeek 10 Lab Notes

Last updated 4 months ago