<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - przekazywanie kolumn do funkcji??]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=2208&amp;type=atom"/>
	<updated>2014-09-01T09:26:09Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=2208</id>
		<entry>
			<title type="html"><![CDATA[Odp: przekazywanie kolumn do funkcji??]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=5321#p5321"/>
			<content type="html"><![CDATA[Sprawdzenie wiersz po wierszu może tak ?

[url]http://www.postgresql.org/docs/8.4/static/plpgsql-control-structures.html[/url]

DECLARE
    r foo%rowtype;
BEGIN
    FOR r IN SELECT * FROM foo
    WHERE fooid > 0
    LOOP
        -- can do some processing here
        
    END LOOP;
    RETURN;
END]]></content>
			<author>
				<name><![CDATA[adamleon]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=873</uri>
			</author>
			<updated>2014-09-01T09:26:09Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=5321#p5321</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[przekazywanie kolumn do funkcji??]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=5319#p5319"/>
			<content type="html"><![CDATA[Witam!!
jak w postgres sql można przekazać cała kolumnę do funkcji?? tak jak się to odbywa przy funkcji min lub max
oraz jak wewnątrz funkcji sprawdzić całą tabele wiersz po wierszu

coś takiego

DECLARE
rek_osob Emp%ROWTYPE;
BEGIN
SELECT * INTO rek_osob FROM Emp e WHERE e.Ename = 'SCOTT';

to odczytam tylko jeden wiersz, ale ja chce w pętli wiersz po wierszu coś sprawdzać

bardzo proszę o pomoc, naprawdę sobie z tym nie radze i nie mogę znaleźć jakiejś odpowiedzi na to]]></content>
			<author>
				<name><![CDATA[noob]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1637</uri>
			</author>
			<updated>2014-08-29T01:47:46Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=5319#p5319</id>
		</entry>
</feed>
