altocompta/sql/mod1/fct.sql
2004-10-03 15:59:30 +00:00

8 lines
164 B
PL/PgSQL

create or replace function today_hour() returns text as '
declare
hour text ;
begin
select to_char(now(),\'HHMI\') into hour;
return hour;
end;
' LANGUAGE PLPgSql;