JIYIK CN >

Current Location:Home > Learning >

All

Postgres Connection String

Publish Date:2025/04/27 Author:JIYIK Category:PostgreSQL

数据库连接 A string is an expression in which there are all the parameters necessary to establish a connection from a terminal device to a database. It contains databases 用户名 , 密码 , 名称 , 主机地址 and 端口 . This con...

Full

If statement in PostgreSQL

Publish Date:2025/04/27 Author:JIYIK Category:PostgreSQL

if Statement evaluates a condition by returning true or false value. We can use it to perform condition based queries. This article will teach you how to write if conditional statements and understand how conditional statements can help you...

Full

Update and Join Statements in PostgreSQL

Publish Date:2025/04/27 Author:JIYIK Category:PostgreSQL

This article guides you through using the UPDATE and JOIN statements to update a table. Generate a shipment example in PostgreSQL Consider a store that sells food. Every time a shipment arrives, the price of the product is updated to reflec...

Full

Check the Postgres version

Publish Date:2025/04/27 Author:JIYIK Category:PostgreSQL

This article shows how to check the version of Postgres. Checking Postgres Version in Windows C: \ Users \ Admin psql -- version psql ( PostgreSQL ) 14.0 C : \ Users \ Admin postgres -- version postgres ( PostgreSQL ) 14.0 The version shown...

Full

Create a table if it does not exist in PostgreSQL

Publish Date:2025/04/27 Author:JIYIK Category:PostgreSQL

PostgreSQL is an object-relational database system, which means it can support more complex data types than its competitor MySQL. Apart from the above differences, when writing queries for PostgreSQL and MySQL or other database systems, the...

Full

Importing SQL files in PostgreSQL

Publish Date:2025/04/27 Author:JIYIK Category:PostgreSQL

This article discusses how to import SQL files in PostgreSQL. psql Import SQL files in PostgreSQL using command To import the SQL file, run the following command: psql - U dbuser - h localhost databasename filename. sql If the file is locat...

Full

Creating a Schema in PostgreSQL

Publish Date:2025/04/27 Author:JIYIK Category:PostgreSQL

This article will discuss creating schemas in PostgreSQL using SQL queries or psql. CREATE SCHEMA Use the statement to create a pattern in SQL query To create a new schema, execute the following command. CREATE SCHEMA test_schema To view al...

Full

How to install and deploy PostgreSQL as a Docker container

Publish Date:2025/04/27 Author:JIYIK Category:PostgreSQL

PostgreSQL , also known as Postgres, is a leading object-relational database system. It is popular because it is highly compliant with the SQL standard and includes additional features that simplify processing complex data sets at scale. Po...

Full

Query string length in MongoDB

Publish Date:2025/04/27 Author:JIYIK Category:MongoDB

Sometimes, we need to find a specific document using special properties like string length. In this article, we will see how to find a specific document using string length in MongoDB, and we will also see an example on this topic for easy...

Full

Querying documents with array size greater than 1 in MongoDB

Publish Date:2025/04/27 Author:JIYIK Category:MongoDB

When working with projects where you need to validate the size of an array or find elements whose size is greater or less than a certain length, you might use MongoDB operators such as $size, $where, $exists, etc. The methods discussed belo...

Full

Return unique values in MongoDB

Publish Date:2025/04/27 Author:JIYIK Category:MongoDB

In this article, we will address how to use the MongoDB distinct() method to return unique values. In addition, returning unique values ​​in arrays and fields is discussed. In MongoDB, sometimes you may want to present or return unique...

Full

Deleting a user from a database in MongoDB

Publish Date:2025/04/27 Author:JIYIK Category:MongoDB

This article will explain how to delete a user from a MongoDB database. In addition, we will see an example to make the topic easier to understand. Deleting a User from a MongoDB Database Sometimes we need to remove a particular user from t...

Full

Sorting by timestamp in MongoDB

Publish Date:2025/04/27 Author:JIYIK Category:MongoDB

This article will introduce various methods of sorting timestamps in MongoDB. Sorting by timestamp in MongoDB sort() The method will sort documents in MongoDB. The method accepts a document containing a list of fields and the order in which...

Full

$unset operator in MongoDB

Publish Date:2025/04/27 Author:JIYIK Category:MongoDB

This article will discuss how the $unset operator works in MongoDB. Additionally, we will demonstrate the use of this operator to remove a field from all documents in a MongoDB collection. $unset operator in MongoDB $unset is an operator us...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial