<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - Problem z polem data gdy jest null]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=14387&amp;type=atom"/>
	<updated>2017-11-28T11:08:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=14387</id>
		<entry>
			<title type="html"><![CDATA[Odp: Problem z polem data gdy jest null]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=18032#p18032"/>
			<content type="html"><![CDATA[JUŻ NIE WAŻNE :)

WYSTARCZYŁO: select * from tabela where datur is null]]></content>
			<author>
				<name><![CDATA[STRATOLINER]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1641</uri>
			</author>
			<updated>2017-11-28T11:08:32Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=18032#p18032</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Problem z polem data gdy jest null]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=18031#p18031"/>
			<content type="html"><![CDATA[Mam problem z wykonaniem selecat dla wierszy z datą która jest nie wpisana. 
Jest tabela: w której:

  nrkro character(14) NOT NULL,
  datur date,
  

W podglądzie mam wiersze np:
nrkro | datur |
005070936501  || 
AT007530709   |2005-01-15|

Nie mogę wyświetlić żadnego wiersza, który ma pole datur puste :(
Robię:

select * from tabela where datur=null
select * from tabela where datur=''
select * from tabela where datur=""
select * from tabela where datur='    -  -  '
select * from krowy where to_char(datur,  'YYYY-MM-DD')=''
select * from krowy where to_char(datur,  'YYYY-MM-DD')='    -  -  '
select * from krowy where to_char(datur,  'YYYY-MM-DD')=null

nic z powyższego nie działa tzn wynik jest pusty

Jakieś pomysły?]]></content>
			<author>
				<name><![CDATA[STRATOLINER]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1641</uri>
			</author>
			<updated>2017-11-28T06:54:11Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=18031#p18031</id>
		</entry>
</feed>
