<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - SQL- typ timestamp i zapytania o date]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=652&amp;type=atom"/>
	<updated>2011-10-05T06:42:41Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=652</id>
		<entry>
			<title type="html"><![CDATA[Odp: SQL- typ timestamp i zapytania o date]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2747#p2747"/>
			<content type="html"><![CDATA[Dziękuję gszpetkowski jak zwykle można na Ciebie liczyć :-)
Pozdrawiam
Michał]]></content>
			<author>
				<name><![CDATA[hetmanJIIIS]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1268</uri>
			</author>
			<updated>2011-10-05T06:42:41Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2747#p2747</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: SQL- typ timestamp i zapytania o date]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2746#p2746"/>
			<content type="html"><![CDATA[Dla timestamp'ów można używać zwykłych operatorów arytmetycznych (SQL): =, <>, <, <=, >=, > w zależności od potrzeb dostępne są też wszelakie funkcje (vide [url]http://www.postgresql.org/docs/current/static/functions-datetime.html).[/url] Przykładowo (te dwa select'y nie są równoważne):

[code]SELECT data FROM tab1 WHERE data > '2011-01-01';
SELECT data FROM tab1 WHERE date_part('year', data) > 2011;[/code]]]></content>
			<author>
				<name><![CDATA[gszpetkowski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1223</uri>
			</author>
			<updated>2011-10-04T17:10:33Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2746#p2746</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[SQL- typ timestamp i zapytania o date]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2744#p2744"/>
			<content type="html"><![CDATA[Witam wszystkich
Potrzebuje zrobic przeszukiwania wg. daty
Mam tabele tab1, pola id (serial), text ( text) i data (timestamp without time zone),
Potrzebuje zrobic zapytanie o daty pozniejsze niz np. 2011 rok.]]></content>
			<author>
				<name><![CDATA[hetmanJIIIS]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1268</uri>
			</author>
			<updated>2011-10-04T10:35:53Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2744#p2744</id>
		</entry>
</feed>
