| From: | "Johnson, Shaunn" <SJohnson6(at)bcbsm(dot)com> |
|---|---|
| To: | pgsql-general(at)postgreSQL(dot)org |
| Subject: | Re: return true / false instead of int4 value |
| Date: | 2002-06-04 17:10:48 |
| Message-ID: | 73309C2FDD95D11192E60008C7B1D5BB04C73B5D@snt452.corp.bcbsm.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
--Thanks all (esp. doug, peter, stephan)
--works like a charm!
-X
-----Original Message-----
From: Stephan Szabo [mailto:sszabo(at)megazone23(dot)bigpanda(dot)com]
On Tue, 4 Jun 2002, Johnson, Shaunn wrote:
> Howdy:
>
> I want to know if this is even possible: How
> can I return a true/false value instead of
> integer?
>
> I want to do something like this:
>
> [snip]
>
> select count(*) from t_table
> having count(*) > 1500000
>
> [/snip]
>
> But want to return a true/false (bool) result.
Wouldn't select count(*)>1500000 from t_table;
give you a true/false based on whether the count
is greater than that number?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Vince Vielhaber | 2002-06-04 17:12:12 | Re: How do I get a Digest subscription? |
| Previous Message | Joseph Maxwell | 2002-06-04 17:04:38 | How do I get a Digest subscription? |