Array Function in PostgreSQL

Introduction This tutorial will explain how to use the array function with the PostgreSQL database and the various necessary array functions. An array has an essential role in a PostgreSQL database and each type of data has its own corresponding array. For example, a character will have character[] array, an integer will have an integer[] … Continued

Begin Transaction Commit in PostgreSQL

Introduction This tutorial will discuss the transaction processes BEGIN and COMMIT on how they play a vital part in a transaction cycle. Prerequisites Ensure that PostgreSQL server is properly installed, configured and running on the background. For Linux and Windows systems you can download PostgreSQL here What is a Transaction. A unit of operation performed … Continued

Get MongoDB Database And Collection Names with PyMongo and Python

Introduction MongoDB stores its data (known as “documents”) by grouping them in collections that are themselves stored in a database. This article will help you to create database and collection names for a MongoDB server, and then it will help you to retrieve the database and collection names, in Python, with some example code. Prerequisites … Continued

Use Mongoose to Sort by Multiple Field

Introduction Sorting is always helpful. Sorting documents of a collection can be useful. Using mongoose, we can get an output where all the documents are sorted in an order. The order can be ascending or descending. We can specify the order. The documents can be sorted according to a single field or even, we can … Continued

Types of Indexes in PostgreSQL

Introduction If you’re interested in building apps that are powered by a database, it’s important to have a solid understanding of indexes and how they work. An index is a type of database structure used to speed up queries. A database index is a bit like the index in a book– for example, if you … Continued

PostgreSQL ALL Operator

Introduction This tutorial will explain how to use the PostgreSQL ALL operator and provide examples to help obtain a working understanding of the function. The PostgreSQL ALL operator function allows for the selection of all the records of a SELECT STATEMENT and will compare the value to every value within the query result set. This … Continued

How to Use PostgreSQL List Index

Introduction If you’re using indexes on your PostgreSQL tables, you’ll probably want to know how to obtain a list of these indexes. There’s no such thing as a PostgreSQL LIST INDEX command; instead, we can use the pg_indexes view to accomplish this task. This tutorial will show you how to list indexes in PostgreSQL using … Continued

Keep in the know!

Subscribe to our emails and we’ll let you know what’s going on at ObjectRocket. We hate spam and make it easy to unsubscribe.