Correct Insert SQL syntax? - Mailing list pgsql-sql

From Ruben Gouveia
Subject Correct Insert SQL syntax?
Date
Msg-id 51e507b0809041516s23978e0btb1e8540d68971656@mail.gmail.com
Whole thread Raw
Responses Re: Correct Insert SQL syntax?
Re: Correct Insert SQL syntax?
List pgsql-sql
Will this syntax work:

fcn_stats are all in the same schema

CREATE OR REPLACE FUNCTION insert_stats(p_date date)
RETURNS void AS $$
         
          BEGIN
                    insert into stats (
                            date,
                            stats1,
                            stats2
                    ) (select
                          p_date,
                          fcn_stats1(p_date,'basic'),
                          fcn_stats2(p_date,'basic',0)
                          from dual
                     );
END;
$$ LANGUAGE 'plpgsql';
                   

pgsql-sql by date:

Previous
From: "Ruben Gouveia"
Date:
Subject: Re: Dynamic SQL Syntax help please
Next
From: "Yura Gal"
Date:
Subject: Re: Correct Insert SQL syntax?