JIYIK CN >

Current Location:Home > Learning > DATABASE > PostgreSQL >

All

PostgreSQL replace string

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

This article discusses how to use PostgreSQL replace() functions to replace strings. Use the PostgreSQL replace() function to replace strings PostgreSQL replace() functions have the following arguments, which are all text types: replace (st...

Full

Using the database in PostgreSQL

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

This article demonstrates connecting to a database, creating a new database, and creating a table in PostgreSQL. Available databases in PostgreSQL You can run the following command after opening the Postgres command line to view all availab...

Full

Deleting a database in PostgreSQL via PSQL

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

There are two ways to access PostgreSQL objects and databases on your system. One is through an interface, such as a graphical interface like PGADMIN, and the other is the basic command line tool psql. Today, we will look at DROP DATABASE t...

Full

Connect to PostgreSQL using a password

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

This article shows various ways to connect to PostgreSQL using a password. It can be through the command line, pgpass a file, PGPASSWORD an environment variable or a connection string. Connecting to PostgreSQL with a password using the comm...

Full

Using variables in PostgreSQL

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

This article will demonstrate how we can declare and assign values ​​to variables in PostgreSQL. In PostgreSQL, DECLARE variables are declared using Often you will need variables in your PL/SQL scripts. In DECLARE the section called , y...

Full

Using NOT IN with subqueries in PostgreSQL

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

NOT IN The inverts the result of NOT simply using IN the operator. NOT IN The right side of the operator must have a subquery in which multiple columns are returned to check whether the expression matches the data. NOT IN Tends to return tr...

Full

Using CASE in PostgreSQL

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

This article shows how to use the statement in PostgreSQL CASE . CASE How to use the statement in PostgreSQL case Statements are similar to those in general-purpose programming languages if-else . But in SQL, if you want to write IF-ELSE ,...

Full

Joining columns using Select in PostgreSQL

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

MySQL PostgreSQL is an object-relational database system, which means it can support more complex data types than its competitors . Today we will learn how to use SELECT the operator to join the columns of a table. Using operators to || joi...

Full

Single query to rename and change column type in PostgreSQL

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

This article describes how to rename a column and change its type in PostgreSQL using only a single query. Renaming and changing column types in MySQL In MySQL , if you want to change the column type and rename it, you can use a simple stat...

Full

Terminate the PostgreSQL connection

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

In this article, we will learn how to terminate a PostgreSQL session. Any open connections are run by background processes or tasks, PSQL which may no longer exist despite exiting the user interface or command line tool. Use ps -ef or grep...

Full

Foreign key syntax in PostgreSQL

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

In our article, we mainly work on the PostgreSQL application called pgAdmin [app. number] , which can be downloaded from the PostgreSQL website. Therefore, we hope that you already have the application installed or another alternative where...

Full

Default username/password for PostgreSQL server in Rails 4

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

Default username/password for PostgreSQL server in Rails 4

USERNAME Many PostgreSQL users may be asked for their database settings for the first time when logging in PASSWORD . However, just learning these settings is not all you need to know. What is the server in Rails 4? The server in Rails 4 us...

Full

Saving PL/pgSQL output from PostgreSQL to CSV

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

Before we start looking at different solutions to this problem, let's understand what a CSV file is and how output works in PL/pgSQL. PL/pgSQL output is the data displayed after running certain types of queries in PostgreSQL. Sometimes, as...

Full

List all tables in PostgreSQL INFORMATION_SCHEMA table

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

Let's start with a simple question. INFORMATION_SCHEMA What exactly is it? INFORMATION_SCHEMA Provides us with information about the objects defined in our database. It contains a set VIEWS of objects that store QUERY the database objects....

Full

Listing Tables in PostgreSQL

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

This article will use the PostgreSQL database to show the different commands we can use to return a collection of database tables. MySQL A common command you will encounter in databases is , SHOW TABLES but in PostgreSQL, the database manag...

Full

Scan to Read All Tech Tutorials

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

Hottest

Tags

Scan the Code
Easier Access Tutorial