New database files
This commit is contained in:
parent
48a47c25c0
commit
0f40a0e720
17 changed files with 3732 additions and 22 deletions
19
sql/mod1/function.sql
Normal file
19
sql/mod1/function.sql
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
-- Name: plpgsql_call_handler (); Type: FUNCTION; Schema: public; Owner: dany
|
||||
--
|
||||
|
||||
CREATE FUNCTION plpgsql_call_handler () RETURNS language_handler
|
||||
AS '$libdir/plpgsql', 'plpgsql_call_handler'
|
||||
LANGUAGE c;
|
||||
-- Name: today_hour (); Type: FUNCTION; Schema: public; Owner: dany
|
||||
--
|
||||
|
||||
CREATE FUNCTION today_hour () RETURNS text
|
||||
AS '
|
||||
declare
|
||||
hour text ;
|
||||
begin
|
||||
select to_char(now(),''HHMI'') into hour;
|
||||
return hour;
|
||||
end;
|
||||
'
|
||||
LANGUAGE plpgsql;
|
||||
Loading…
Add table
Add a link
Reference in a new issue