|< < 36 > >|

Postgres Stored Procedures

A (bad) function to convert dollars to euros

create function euros(dollars numeric(10, 2)) returns numeric(10, 2) as $$ begin -- begin the body of the function, not a transaction! return dollars * 1.2; end $$ language plpgsql;

|< < 36 > >|