<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="cs">
	<id>http://postgres.cz/index.php?action=history&amp;feed=atom&amp;title=SQL_statements_in_SQL%2FPSM_samples</id>
	<title>SQL statements in SQL/PSM samples - Historie editací</title>
	<link rel="self" type="application/atom+xml" href="http://postgres.cz/index.php?action=history&amp;feed=atom&amp;title=SQL_statements_in_SQL%2FPSM_samples"/>
	<link rel="alternate" type="text/html" href="http://postgres.cz/index.php?title=SQL_statements_in_SQL/PSM_samples&amp;action=history"/>
	<updated>2026-05-13T04:11:42Z</updated>
	<subtitle>Historie editací této stránky</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://postgres.cz/index.php?title=SQL_statements_in_SQL/PSM_samples&amp;diff=218&amp;oldid=prev</id>
		<title>85.160.108.43 v 3. 12. 2006, 18:29</title>
		<link rel="alternate" type="text/html" href="http://postgres.cz/index.php?title=SQL_statements_in_SQL/PSM_samples&amp;diff=218&amp;oldid=prev"/>
		<updated>2006-12-03T18:29:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nová stránka&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== SQL support ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CREATE OR REPLACE FUNCTION fx(OUT a int)  AS&lt;br /&gt;
$$&lt;br /&gt;
  SELECT INTO a sum(y)&lt;br /&gt;
    FROM foo;&lt;br /&gt;
$$ LANGUAGE plpgpsm;&lt;br /&gt;
&lt;br /&gt;
CREATE OR REPLACE FUNCTION fx() &lt;br /&gt;
RETURNS int AS &lt;br /&gt;
$$ &lt;br /&gt;
  BEGIN&lt;br /&gt;
    DECLARE i int DEFAULT 0; &lt;br /&gt;
    WHILE i &amp;lt; 10 &lt;br /&gt;
    DO &lt;br /&gt;
      INSERT INTO foo VALUES(i, i+1); &lt;br /&gt;
      SET i = i + 1; &lt;br /&gt;
    END WHILE; &lt;br /&gt;
    RETURN i; &lt;br /&gt;
  END; &lt;br /&gt;
$$ LANGUAGE plpgpsm;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>85.160.108.43</name></author>
	</entry>
</feed>