From: Radovan Petrikí <r.petrik@episoftware.com>
To: PostgreSQL-mailinglist <pgsql-sql@postgresql.org>
Subject: How I write pretty query.
Date: 29 Apr 2003 17:49:37 +0200
Message-ID: <1051631377.3674.35.camel@caj> (raw)
Hi ,
I have table
------------------
id | name
------------------
1 rado
2 marek
3 pista
I need make query. Your output is only (true or false)
This 2 query are good but no pretty.
1) SELECT COUNT(*) FROM table WHERE name=rado
-------------
output --> COUNT(*) 1
or
2) SELECT name FROM table WERE name=rado
-------------
output --> name rado
and this is pretty query :-) buy no good.
SELECT (true or false) FROM table WHERE name=rado
--------------
output ----> true
How I write good and pretty query ?
Thanks
Rado
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: r.petrik@episoftware.com
Subject: Re: How I write pretty query.
In-Reply-To: <1051631377.3674.35.camel@caj>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox