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-5ded84061a606307219557/] This will also install other dependencies. To connect to Postgres: [crayon-5ded84061a626778189257/] To check the login info, use the following command [crayon-5ded84061a62f351069398/] 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