<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - wyswietlanie zaleznosci]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=425&amp;type=atom"/>
	<updated>2010-04-13T11:57:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=425</id>
		<entry>
			<title type="html"><![CDATA[Odp: wyswietlanie zaleznosci]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1959#p1959"/>
			<content type="html"><![CDATA[[quote=rski]W sumie nie napisales jakie informacje chcesz wyciągnąc więc to pierwsza propozycja.
[code]
select * from information_schema.key_column_usage t1, (select * from information_schema.referential_constraints where unique_constraint_name in (select constraint_name from information_schema.table_constraints where constraint_type in 
('PRIMARY KEY','UNIQUE') and table_name in ('c'))) t2 where t1.constraint_name=t2.constraint_name;
[/code]
Tu znajdziesz duzo przydatnych tabel/widokow do 'wyciagania' z bazy podobnych informacji
[url]http://www.postgresql.org/docs/current/static/information-schema.html[/url][/quote]

Dzieki, wlasnie o to mi chodzilo]]></content>
			<author>
				<name><![CDATA[6nom]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=971</uri>
			</author>
			<updated>2010-04-13T11:57:58Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1959#p1959</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: wyswietlanie zaleznosci]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1958#p1958"/>
			<content type="html"><![CDATA[W sumie nie napisales jakie informacje chcesz wyciągnąc więc to pierwsza propozycja.
[code]
select * from information_schema.key_column_usage t1, (select * from information_schema.referential_constraints where unique_constraint_name in (select constraint_name from information_schema.table_constraints where constraint_type in 
('PRIMARY KEY','UNIQUE') and table_name in ('c'))) t2 where t1.constraint_name=t2.constraint_name;
[/code]
Tu znajdziesz duzo przydatnych tabel/widokow do 'wyciagania' z bazy podobnych informacji
[url]http://www.postgresql.org/docs/current/static/information-schema.html[/url]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2010-04-13T10:20:37Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1958#p1958</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[wyswietlanie zaleznosci]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=1957#p1957"/>
			<content type="html"><![CDATA[Czy istnieje mozliwosc wyswietlenia powiazan z dana tabela za pomoca polecenie sql? Jesli mamy np. tabele A, B i C z czego tabele A i B posiadaja klucze obce wskazujace na tabele C, to jak wyswietlic powiazania do tabeli C?]]></content>
			<author>
				<name><![CDATA[6nom]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=971</uri>
			</author>
			<updated>2010-04-13T09:51:16Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=1957#p1957</id>
		</entry>
</feed>
