How do I check for NULL - Mailing list pgsql-general

From Thiemo Kellner
Subject How do I check for NULL
Date
Msg-id aa20cf3d-20ab-4788-bab0-60e478c9f125@gelassene-pferde.biz
Whole thread Raw
In response to How do I check for NULL  (Igor Korot <ikorot01@gmail.com>)
Responses Re: How do I check for NULL
List pgsql-general
Hi

I believe there is a misconception. I feel, you meant to say, the subquery does not return any record which is not the same as returns NULL.

In any case, I suggest you to use the "insert select" construct, see examples in https://www.postgresql.org/docs/current/sql-insert.html, e.g. "NSERT INTO films SELECT * FROM tmp_films WHERE date_prod < '2004-05-07';"

Cheers

Thiemo

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: How do I check for NULL
Next
From: Thiemo Kellner
Date:
Subject: How do I check for NULL