1.

What is purpose of overlay function in PostgreSQL?

Answer»

In PostgreSQL, the Overlay function allows users to replace a SUBSTRING, which is starting at a specific position and having a specified length.

Here is the syntax for the Overlay Function:

Example

overlay(<main_string> placing <replaced_string> <br>
from <starting_position> [ for <number_of_characters>] )

28. How to calculate cube root in PostgreSQL?

To find the cube root of ant given NUMBER in PostgreSQL, you can USE the CBRT() function.

Example

SELECT cbrt(729) AS "Cube Root";
OUTPUT - 9



Discussion

No Comment Found