# Education

> PostgreSQL & open source tutorials: database optimization, Linux administration, Python/Ruby development, Ansible automation guides & infrastructure best practices.

### Professional Postgres and Open Source support  


Command Prompt, Inc., is the oldest Postgres Company in North America and one of the oldest Open Source firms still operating today. We serve our clients with best in class expertise and professionalism. You can read more about support and services here:  
  


  * Postgres Support
  * PgLTS: Extended Support for EOL Postgres
  * Open Source Full Stack Support
  * Try the latest PgManage (Open Source) and get rid of PgAdmin!



 **  
**You have landed at the largest single source of Postgres education blogs in the world. At Command Prompt, we believe deeply that the education of the community is critical to the continued success of Postgres and related technologies. We hope you find content you are looking for and don 't hesitate to [**Contact us**](<https://commandprompt.com/contact-us/>) **today for all your Postgres and Open Source consulting and support needs.  
**

## Recent Posts
- [How to Create, Update and Drop Tables in a PostgreSQL Docker Container](https://www.commandprompt.com/education/how-to-create-update-and-drop-tables-in-a-postgresql-docker-container/): To create, update and drop tables in PostgreSQL container, build and run PostgreSQL container and connect with Database Server. Then, perform these operations.
- [What’s the Difference Between HAVING Clause and WHERE Clause in PostgreSQL?](https://www.commandprompt.com/education/difference-between-having-where-clause-postgresql/): In PostgreSQL, the WHERE clause filters the data of each row and then groups the data while the HAVING clause filters the grouped data.
- [PostgreSQL Cheat Sheet - Basic Commands](https://www.commandprompt.com/education/postgresql-cheat-sheet-databases-schemas-tables-users/): This blog presented a cheat sheet that assists us in working with the Postgres databases, schemas, tables, and users/roles, efficiently.
- [PostgreSQL Pattern Matching: LIKE VS NOT LIKE VS ILIKE](https://www.commandprompt.com/education/postgresql-pattern-matching-like-vs-not-like-vs-ilike/): The LIKE operator matches the search expression with the specified pattern and retrieves true if the match is found. The NOT LIKE operator negates the results …
- [How to Connect PostgreSQL to Java Using JDBC](https://www.commandprompt.com/education/connect-postgresql-java-jdbc/): To connect PostgreSQL to Java via JDBC, integrate Postgres JDBC Driver with Java, and establish a new connection. After this, you can execute PostgreSQL Querie…
- [PostgreSQL LENGTH() Function With Practical Examples](https://www.commandprompt.com/education/postgresql-length-function-examples/): The Postgres LENGTH() function accepts a string as an argument and calculates the total number of characters in that particular string.
- [How to Show Databases in PostgreSQL](https://www.commandprompt.com/education/show-databases-postgresql/): In PostgreSQL, the “\l” command and “pg_databases” catalog are used to show the list of databases. Use the “\l+” command to show databases with more details.
- [How to Create a Database in PostgreSQL](https://www.commandprompt.com/education/how-to-create-a-database-in-postgresql/): A Postgres database can be created using “CREATE DATABASE” or “createdb” commands. The difference is that the “createdb” can be executed from the command promp…
- [How to Install PostgreSQL (psql) on Arch Linux](https://www.commandprompt.com/education/install-postgresql-psql-arch-linux/): To install PostgreSQL on the Arch system, use the default Pacman package manager tool. More specifically, using the “sudo pacman -S postgresql” command.
- [How to Use LIMIT Clause in PostgreSQL](https://www.commandprompt.com/education/how-to-use-limit-clause-in-postgresql/): In PostgreSQL, the LIMIT clause and OFFSET clause allow us to retrieve only a subset of data returned/generated by the SELECT query.
- [How to Install PostgreSQL on Ubuntu 24.04](https://www.commandprompt.com/education/how-to-install-postgresql-on-ubuntu-2404/): To install Postgres on Ubuntu 24.04, first update the system packages and then use the “sudo apt install postgresql postgresql-contrib -y” command.
- [How to Use RENAME TABLE Statement in PostgreSQL](https://www.commandprompt.com/education/rename-table-postgresql/): In PostgreSQL, the RENAME TO clause is used with the collaboration of the ALTER TABLE statement to rename an already existing table.
- [PostgreSQL TIME Data Type With Examples](https://www.commandprompt.com/education/postgresql-time-data-type-with-examples/): To use TIME data type in Postgres, first, create a table with a TIME-type column. Once created, you can insert any time value into that column using the INSERT…
- [How to Use Insert Query in PostgreSQL](https://www.commandprompt.com/education/how-to-use-insert-query-in-postgresql/): How to use Insert with PostgreSQL
- [PostgreSQL IF Statement With Examples](https://www.commandprompt.com/education/postgresql-if-statement-with-examples/): If statement executes only those expressions that satisfy the specified condition. Otherwise the control will be moved to the next statement.
- [How to Rename Databases in PostgreSQL](https://www.commandprompt.com/education/rename-databases-postgresql/): To rename a database in Postgres, use the ALTER DATABASE statement with the RENAME TO clause. Also, you can use pgAdmin to rename a database manually.
- [A Comprehensive Guide on psql Meta-Commands](https://www.commandprompt.com/education/a-comprehensive-guide-on-psql-meta-commands/): The meta-commands are the commands offered by psql to perform certain operations. These commands start with the backslash.
- [A Comprehensive Guide on PostgreSQL SCHEMA](https://www.commandprompt.com/education/comprehensive-guide-postgresql-schema/): Postgres offers various built-in commands, such as CREATE SCHEMA, ALTER SCHEMA, and DROP SCHEMA, to create, modify, and drop the Postgres schemas.
- [Comparison Operators in PostgreSQL](https://www.commandprompt.com/education/comparison-operators-in-postgresql/): PostgreSQL offers a wide range of comparison operators, including basic and advanced ones, such as =, &lt;, &lt;&gt;, BETWEEN, IN, etc.
- [PostgreSQL INTEGER Data Type With Examples](https://www.commandprompt.com/education/postgresql-integer-data-type-with-examples/): In PostgreSQL, the INTEGER data type facilitates the user to store the numerical data between the range of -2,147,483,648 to +2,147,483,647 numbers.

---
[View this page online](https://www.commandprompt.com/education/)