Database Archive

Postgres sql database cheatsheet

In this post, I am installing postgres on ubuntu and then will perform different sql operations on it. Installation commands may vary with other distributions like CentOS or Mac. To install: [crayon-5d0c12692d485820355970/] This will also install other dependencies. To connect to Postgres: [crayon-5d0c12692d4a6024180436/] To check the login info, use the following command [crayon-5d0c12692d4b8765845356/] By default, PostgreSQL will

Database Notes

  Relational database management system (RDBMS) A relational database like SQL is a collection of data items organized in tables. ACID is a set of properties of relational database transactions. Atomicity – Each transaction is all or nothing Consistency – Any transaction will bring the database from one valid state to another Isolation – Executing transactions concurrently has the same