<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - Rozdzielenie kolumn]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=14351&amp;type=atom"/>
	<updated>2017-01-11T20:58:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=14351</id>
		<entry>
			<title type="html"><![CDATA[Odp: Rozdzielenie kolumn]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=17905#p17905"/>
			<content type="html"><![CDATA[można na przykład tak:

with d(ciag) as (values 
(''),(null),
('1;11'),
('10;11'),
('11;111')
)
select * from d where '11' = any (string_to_array (ciag,';'))]]></content>
			<author>
				<name><![CDATA[c_michal]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=627</uri>
			</author>
			<updated>2017-01-11T20:58:45Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=17905#p17905</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Rozdzielenie kolumn]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=17903#p17903"/>
			<content type="html"><![CDATA[Cześć, 
Mam mały problem z którym nie bardzo potrafię sobie poradzić.
Dane są fikcyjne i bez sensu chodzi mi jedynie o metodę.
Posiadam kolumnę w której znajduję się wiele wartości oddzielonych średnikiem np.

1;11
10;11
11;111

Chciałbym znaleźć rekordy które zawierają wartość 11.
Czy znacie może jakiś mądry sposób jak sobie z tym poradzić?
Dzięki za jakąkolwiek wskazówkę.]]></content>
			<author>
				<name><![CDATA[cogi94]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=2987</uri>
			</author>
			<updated>2017-01-11T20:09:01Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=17903#p17903</id>
		</entry>
</feed>
