Do math calculation in select statement : Select « Insert Delete Update « PostgreSQL






Do math calculation in select statement


postgres=# SELECT 2 + 2;
 ?column?
----------
        4
(1 row)

postgres=#
postgres=#
           
       








Related examples in the same category

1.Do calculation in select statement
2.Query a single row
3.Write expressions, not just simple column references, in the select list
4.Use aggregate function in select statement
5.Using defined function in select statement