<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - Definiowane typy przez użytkownika i tablice]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=522&amp;type=atom"/>
	<updated>2011-01-09T22:12:03Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=522</id>
		<entry>
			<title type="html"><![CDATA[Odp: Definiowane typy przez użytkownika i tablice]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2339#p2339"/>
			<content type="html"><![CDATA[Dzięki! :)]]></content>
			<author>
				<name><![CDATA[lunereaper]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1180</uri>
			</author>
			<updated>2011-01-09T22:12:03Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2339#p2339</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Definiowane typy przez użytkownika i tablice]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2336#p2336"/>
			<content type="html"><![CDATA[[code]
INSERT INTO sample_table VALUES (DEFAULT, '{"(test,test@test.pl)","(aa,a@a.pl)"}')
[/code]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2011-01-09T21:32:22Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2336#p2336</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Definiowane typy przez użytkownika i tablice]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2333#p2333"/>
			<content type="html"><![CDATA[Mam taki przykład;
CREATE TYPE sample_type AS (
name VARCHAR(20),
email VARCHAR(50)
);

CREATE TABLE sample_table (
sample_table_id SERIAL NOT NULL,
sample_type[]
);

I teraz próbuję wykonać INSERT do tabeli sample_table (już chyba od 2h próbuję bez skutku)
INSERT INTO sample_table VALUES (DEFAULT, '{('test','test@test.pl'),('aa','a@a.pl')}')

Co robię źle?]]></content>
			<author>
				<name><![CDATA[lunereaper]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1180</uri>
			</author>
			<updated>2011-01-09T14:11:27Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2333#p2333</id>
		</entry>
</feed>
