Get negation : Negation « String Functions « PostgreSQL






Get negation


postgres=# SELECT ~ CAST('20' AS int8) AS "negation";
 negation
----------
      -21
(1 row)

postgres=#
           
       








Related examples in the same category