Jump to: navigation, search

PostgreSQL DIV

From w3cyberlearnings

Contents

Postgresql DIV

Integer quotient of y/x, or y divided by x.

Syntax DIV

y is a dividend, and y is a divisor.

DIV(y,x);

Example 1

postgres=# SELECT DIV(50,5);
 div 
-----
  10
(1 row)

Example 2


postgres=# SELECT DIV(15,5);
 div 
-----
   3
(1 row)

Related Links



Navigation
Web
SQL
MISC
References