Correct Insert SQL syntax?
От | Ruben Gouveia |
---|---|
Тема | Correct Insert SQL syntax? |
Дата | |
Msg-id | 51e507b0809041516s23978e0btb1e8540d68971656@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: Correct Insert SQL syntax?
Re: Correct Insert SQL syntax? |
Список | pgsql-sql |
<div dir="ltr">Will this syntax work:<br /><br />fcn_stats are all in the same schema<br /><br />CREATE OR REPLACE FUNCTIONinsert_stats(p_date date)<br />RETURNS void AS $$<br /> <br /> BEGIN<br /> insertinto stats (<br /> date,<br /> stats1,<br /> stats2<br /> ) (select<br /> p_date,<br /> fcn_stats1(p_date,'basic'),<br /> fcn_stats2(p_date,'basic',0)<br /> from dual<br /> );<br />END;<br />$$ LANGUAGE 'plpgsql';<br /> <br /></div>
В списке pgsql-sql по дате отправления: