JIYIK CN >

Current Location:Home > Learning > DATABASE >

All

Get the current date and time in MySQL

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

In this article, we will learn about NOW(), CURRENT_TIMESTAMP() (also written as CURRENT_TIMESTAMP), and SYSDATE() to get the current date and time in MySQL. We will also see a comparison between these three functions. Get the current date...

Full

Convert to decimal in MySQL

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

Sometimes, we may need to convert one data type to another. Here is how we can DECIMAL(M,D) convert to decimal in MySQL using CAST() and CONVERT() functions with . Using CAST() with the DECIMAL(M,D) function to convert to decimal in MySQL W...

Full

Installing MySQL Client in Linux

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

MySQL is an abbreviation for Structured Query Language which is a relational database management system. It is an open source database which is freely available and used for both large and small applications. The use cases are in school app...

Full

Different ways to connect to a remote MySQL server using Ubuntu

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

In this article we will learn how to connect to a remote MySQL server using Ubuntu to manipulate data and start and stop the MySQL server. Different ways to connect to a remote MySQL server using Ubuntu Data operations from Ubuntu 20.04 cli...

Full

The equivalent of Oracle's decode function in MySQL

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

This article presents three alternative implementations that we can use as the equivalent of Oracle's decode() function in MySQL. To do this, we will use IF(), CASE, and a combination of FIELD() and ELT(). MySQL equivalent of Oracle's decod...

Full

Update the primary key in a MySQL table

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

This article explains how to update the primary key in a MySQL table. We will use the ALTER command to make any changes to the primary key. Update the primary key in a MySQL table We can update the primary key in a MySQL table in multiple s...

Full

Use Mysqldump to back up data in MySQL

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

This article will explain how to use mysqldump to back up only the data. Here we will explore the --no-create-info , --compact , , --skip-triggers and --no-create-db options. If you are planning to back up single or multiple databases and t...

Full

Get the last inserted ID using PHP MySQLi function

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

This article briefly introduces the PHP mysqli() function and demonstrates how to use it to get the last inserted ID from a MySQL database. PHP mysqli() Function It is an extended version of the MySQL driver called mysqli and is typically u...

Full

MySQL Error Server PID File Could Not Be Found Solution

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

In this article, we will study about the Error! Error Server PID File Could Not Be Found! in MySQL and its solution with full explanation. MySQL PID file The file that contains the process identification number or process ID of a running My...

Full

MySQL fix Data Is Truncated for a Column error

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

This article describes possible causes and solutions for the MySQL error Data is truncated for a column . Fix data truncated due to column error in MySQL Here, we will discuss the possible causes and solutions to eliminate MySQL data trunca...

Full

Changing the connection timeout in MySQL

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

We are learning how to change the connection timeout in MySQL using Linux (Ubuntu 20.04) and Windows operating systems. Changing the connection timeout in MySQL Sometimes you keep losing connection to the MySQL server because the connect_ti...

Full

Selecting multiple values using WHERE in MySQL

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

This article is about using MySQL query to get data from a specific table or relation that satisfies a specific condition. To do this, the WHERE clause is used in the SQL query. WHERE clause in SQL query WHERE The clause specifies the condi...

Full

Calculating Percentages in MySQL

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

We will use one or more columns to calculate percentages in MySQL. There are different ways to do this, and for each method we will use an example table. Calculate percentage using a column in MySQL We have a table called sales where ID, Re...

Full

Compare only MySQL timestamp dates to date parameters

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

In this article we will use the DATE() , CAST() , and CONVERT() functions to compare MySQL timestamp dates with only the date parameter. DATE() vs. CAST() vs. CONVERT() in MySQL Below is a brief description of each function. You can also fi...

Full

Zerofill usage, advantages and alternatives in MySQL

Publish Date:2025/04/22 Author:JIYIK Category:MySQL

In this article we will understand the uses, advantages and alternatives of ZEROFILL attribute in MySQL. Use and benefits of the ZEROFILL attribute in MySQL The benefit of using the ZEROFILL attribute is that it has nothing to do with input...

Full

Scan to Read All Tech Tutorials

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

Hottest

Tags

Scan the Code
Easier Access Tutorial