<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - Funkcja losująca znaki]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=559&amp;type=atom"/>
	<updated>2011-03-11T21:14:52Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=559</id>
		<entry>
			<title type="html"><![CDATA[Odp: Funkcja losująca znaki]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2431#p2431"/>
			<content type="html"><![CDATA[Wbudowanej to chyba nie ma, ale mozesz napisac swoją:
[code]
CREATE OR REPLACE FUNCTION random_ascii() RETURNS CHAR AS
'
BEGIN
RETURN chr(mod(trunc(random()*100)::int,26)+65);
END;
' LANGUAGE plpgsql;
[/code]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2011-03-11T21:14:52Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2431#p2431</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Funkcja losująca znaki]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2430#p2430"/>
			<content type="html"><![CDATA[Czy istnieje funkcja ,która wylosuje znak z określonego przedziału np. 'A' - 'Z'.
Może jest jakaś podobna funkcja do tej ,która losuje liczby random().]]></content>
			<author>
				<name><![CDATA[Rogo]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1161</uri>
			</author>
			<updated>2011-03-11T17:19:45Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2430#p2430</id>
		</entry>
</feed>
