<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - Usuwanie danych od zdefiniowanego znaku]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=1462&amp;type=atom"/>
	<updated>2013-02-22T07:27:13Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=1462</id>
		<entry>
			<title type="html"><![CDATA[Odp: Usuwanie danych od zdefiniowanego znaku]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4060#p4060"/>
			<content type="html"><![CDATA[poradzilem sobie na dwa sposoby moze komus sie przyda...

1. UPDATE nazwa_tabeli SET nazwa_kolumny = substring(nazwa_kolumny from 0 for position('B' in nazwa_kolumny))
    WHERE nazwa_kolumny LIKE '%B%' 

2. UPDATE nazwa_tabeli SET nazwa_kolumny = regexp_replace(nazwa_kolumny ,'B.*$','')]]></content>
			<author>
				<name><![CDATA[KotonPL]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1529</uri>
			</author>
			<updated>2013-02-22T07:27:13Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4060#p4060</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Usuwanie danych od zdefiniowanego znaku]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4059#p4059"/>
			<content type="html"><![CDATA[Popatrz tutaj

[url]http://www.postgresql.org/docs/current/static/functions-matching.html[/url]

Użyj odpowiedniej funkcji w poleceniu UPDATE]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2013-02-21T16:25:25Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4059#p4059</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Usuwanie danych od zdefiniowanego znaku]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=4058#p4058"/>
			<content type="html"><![CDATA[Witam,

W polu mam np cos takiego: 25/35B385
Jak usunac w tym stringu dane zaczynajace sie od litery "B" tzn. zeby zostalo tylko 25/35?
Z gory dziekuje za pomoc:)]]></content>
			<author>
				<name><![CDATA[KotonPL]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1529</uri>
			</author>
			<updated>2013-02-21T11:05:23Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=4058#p4058</id>
		</entry>
</feed>
