Movatterモバイル変換


[0]ホーム

URL:


Quick Links

Intersection or zero-column queries

From:Victor Yegorov <vyegorov(at)gmail(dot)com>
To:pgsql-general(at)postgresql(dot)org
Subject:Intersection or zero-column queries
Date:2017-12-21 23:53:35
Message-ID:CAGnEbojGJrRSOgJwNGM7JSJZpVAf8xXcVPbVrGdhbVEHZ-BUMw@mail.gmail.com
Views:Whole Thread |Raw Message |Download mbox |Resend email
Thread:
Lists:pgsql-general

Greetings.

One can issue an empty `SELECT` statement and 1 row without columns will be
returned:

postgres=# select;
--
(1 row)

However, if I'll do `EXCPET` or `INTERSECT` of such queries, I'll get 2
rows:

postgres=# select except select;
--
(2 rows)
postgres=# select intersect all select;
--
(2 rows)

Why is it so?
Should this be reported as a bug?.. ;)

--
Victor Yegorov

Responses

Browse pgsql-general by date

 FromDateSubject
Next MessageDavid G. Johnston2017-12-22 00:03:35Re: Intersection or zero-column queries
Previous MessageMelvin Davidson2017-12-21 23:50:13Re: [v10] CREATE TEMP FUNCTION/CREATE FUNCTION PG_TEMP.X

[8]ページ先頭

©2009-2025 Movatter.jp