8 lines
153 B
MySQL
8 lines
153 B
MySQL
create function today_hour() returns text as '
|
|
declare
|
|
hour text ;
|
|
begin
|
|
select to_char(now(),\'HHMI\') into hour;
|
|
return hour;
|
|
end;
|
|
' LANGUAGE PLPgSql;
|