ENVIRONMENT VARIABLES IN PostgreSQL:

ENVIRONMENT VARIABLES IN PostgreSQL: These are useful to avoid hard-coding database connection information into simple client applications, for example. To start a PostgreSQL server, you can run the following command:

However, you can also use an environmental variable to create a shortcut for this… Read More

MongoDB Query Operators Part-3

MongoDB Query Operators Part-3 Evaluation Query Operators MongoDB Evaluation operators are used to evaluate the structure of overall data or the individual fields in the document. They are of six types of Evaluations operators 1. mod ($mod) 2. text ($text) 3. where ($where) 4. jsonSchema… Read More

MongoDB Query Operators Part-2

MongoDB Query Operators Part-2 Element Query Operator This operator is used to find the documents based on the datatypes and the fields in a document. There are two element query operators. 1. exists ($exists) 2. type ($type) 1. exist ($exist): This operator is used to… Read More

PostgreSQL: Clauses and filters

Clauses and filters: Like clause:

LIMIT Clause: The LIMIT clause is used to restrict the number of rows returned in the result set. It is useful when you want to retrieve only a certain number of rows.

OFFSET Clause: It is used in conjunction… Read More

MongoDB Query Operators

MongoDB Query Operators There are different types of Operators available in MongoDB which are used to filter the data. 1 – Comparison operators 2 – Logical operators 3 – Element operators 4 – Evaluation operators 5 – Geospatial operators 6 – Array operators 7 –… Read More

MongoDB CRUD Operations

MongoDB CRUD Operations 1 – To create a new database called sample data. Atlas atlas-dsrabt-shard-0 [primary] myFirstDatabase> use sample data. 2 – To create a new collection called students. Atlas atlas-dsrabt-shard-0 [primary] sampledata> db.createCollection(“students”). 3 – To insert one document in to the collection called… Read More