Skip to content

Database.Guide

DBMS

Database Management Systems

2 Ways to Get the Size of a Database in PostgreSQL

November 12, 2021 by Ian

Below are two ways to return the size of a specific database in PostgreSQL.

Read more

Categories PostgreSQL Tags how to

Subtract Microseconds from a Datetime Value in MariaDB

November 12, 2021 by Ian

Here are some options for subtracting one or more microseconds from a datetime expression in MariaDB.

Read more

Categories MariaDB Tags dates, how to

JSON_VALUE() in MySQL

November 12, 2021 by Ian

In MySQL, the JSON_VALUE() function extracts a value from a JSON document at the specified path.

The function was introduced in MySQL 8.0.21.

Read more

Categories MySQL Tags functions, json, what is

How to Format Negative Numbers with Angle Brackets in Oracle

November 11, 2021 by Ian

When using the TO_CHAR() function to format a number in Oracle Database, you can use the PR format element to return negative values inside angle brackets (<>).

Read more

Categories Oracle Tags how to, number format

3 Ways to Format a Number as a Percentage in PostgreSQL

November 11, 2021 by Ian

We have several options if we want to display numbers with a percentage sign in PostgreSQL.

We can use the TO_CHAR() function to format the number along with the percentage sign. Or we can simply concatenate the number with the percentage sign, either with the CONCAT() function or with the concatenation operator.

Read more

Categories PostgreSQL Tags how to, number format

Add a Percent Sign to a Number in MariaDB

November 11, 2021 by Ian

Below is a quick example of formatting a number as a percentage in MariaDB.

Read more

Categories MariaDB Tags how to, number format

Add Leading Zeros in SQL

March 11, 2022November 10, 2021 by Ian

Below are examples of adding a leading zero to a number in SQL, using various DBMSs.

Read more

Categories Azure SQL Edge, MariaDB, MySQL, Oracle, PostgreSQL, SQL, SQL Server Tags how to, number format

Format a Number as a Percentage in Oracle

November 10, 2021 by Ian

Even though Oracle Database has a TO_CHAR(number) function that allows us to format numbers, it doesn’t provide a format element for the percentage sign.

Therefore, if we want to format a number as a percentage in Oracle Database, we need to concatenate the percentage sign and the number.

Read more

Categories Oracle Tags how to, number format

Format a Number as a Percentage in MySQL

November 10, 2021 by Ian

In MySQL, we can format a number as a percentage by concatenating the number with the percent sign.

The CONCAT() function concatenates its arguments. We can pass the number as the first argument, and the percent sign as the second.

Read more

Categories MySQL Tags how to, number format

2 Ways to Add a Percent Sign to a Number in SQLite

March 11, 2022November 9, 2021 by Ian

Here are two ways to format a number as a percentage in SQLite.

Read more

Categories SQLite Tags how to, number format
Older posts
Newer posts
← Previous Page1 … Page185 Page186 Page187 … Page392 Next →

About | Privacy Policy

© 2026 Database.Guide • All rights reserved