Skip to content

Database.Guide

functions

How the Ln() Function Works in PostgreSQL

June 19, 2020 by Ian

In PostgreSQL, ln() is a mathematical function that returns the natural logarithm of its argument.

Read more

Categories PostgreSQL Tags functions, mathematical functions, what is

How the Exp() Function Works in PostgreSQL

June 19, 2020 by Ian

In PostgreSQL, exp() is a mathematical function that returns the exponential value of its argument.

Read more

Categories PostgreSQL Tags functions, mathematical functions, what is

How Pi() Works in PostgreSQL

June 17, 2020 by Ian

In PostgreSQL, the pi() function returns the number π.

π constant is a mathematical constant. It is defined as the ratio of a circle’s circumference to its diameter.

Read more

Categories PostgreSQL Tags functions, mathematical functions, what is

How the Degrees() Function Works in PostgreSQL

June 17, 2020 by Ian

In PostgreSQL, the degrees() function converts from radians to degrees.

The radian is the SI (International System of Units) unit for measuring angles. One radian is just under 57.3 degrees, and a full circle has just over 6.28 radians (2π).

Read more

Categories PostgreSQL Tags functions, mathematical functions, what is

How the Radians() Function Works in PostgreSQL

June 17, 2020 by Ian

In PostgreSQL, the radians() function converts from degrees to radians.

The radian is the SI (International System of Units) unit for measuring angles. One radian is just under 57.3 degrees, and a full circle has just over 6.28 radians (2π).

Read more

Categories PostgreSQL Tags functions, mathematical functions, what is

How Trunc() Works in PostgreSQL

June 17, 2020 by Ian

In PostgreSQL, the trunc() function truncates a number.

More specifically, it truncates the number either toward zero, or to a specific number of decimal places.

Read more

Categories PostgreSQL Tags functions, mathematical functions, what is

How Ceiling() Works in PostgreSQL

June 15, 2020June 15, 2020 by Ian

In PostgreSQL, the ceiling() function is used for rounding a number up to the nearest integer.

It’s similar to round(), except that it only rounds up. The round() function will round up or down as required.

It’s also similar to floor(), except that floor() rounds down instead of up.

Read more

Categories PostgreSQL Tags functions, mathematical functions, what is

How Floor() Works in PostgreSQL

June 15, 2020June 15, 2020 by Ian

In PostgreSQL, the floor() function is used for rounding a number down to the nearest integer.

It’s basically the opposite of ceiling(), which rounds a number up.

It’s also similar to round(), except that it only rounds down. The round() function will round up or down as required.

Read more

Categories PostgreSQL Tags functions, mathematical functions, what is

How Round() Works in PostgreSQL

June 15, 2020June 15, 2020 by Ian

In PostgreSQL, the round() function is used for rounding a number.

The function can work in one of two ways, depending on how you use it. You can make it round the number to the nearest integer, or to a specified number of decimal places.

This is determined by the number of arguments you pass to the function when you call it.

Read more

Categories PostgreSQL Tags functions, mathematical functions, what is

How age() Works in PostgreSQL

January 28, 2021June 13, 2020 by Ian

In Postgres, the age() function returns the age based on two timestamp or date variables.

The result is returned using years and months, rather than just days.

For example, a result might look like this: 3 years 2 mons 30 days.

Read more

Categories PostgreSQL Tags date functions, dates, functions, what is
Older posts
Newer posts
← Previous Page1 … Page91 Page92 Page93 … Page151 Next →

About | Privacy Policy

© 2026 Database.Guide • All rights reserved