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






Do calculation in select statement

postgres=#
postgres=# SELECT 3 * 4;
 ?column?
----------
       12
(1 row)

postgres=#

           
       








Related examples in the same category

1.Query a single row
2.Do math calculation in select statement
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