On 29 Apr 2003, Rado Petrik wrote:
> I have table
>
> ------------------
> id | name
> ------------------
> 1 rado
> 2 marek
> 3 pista
>
> I need make query. Your output is only (true or false)
If you don't specifically care about the string true/false and
just want a boolean, probably something like:
select exists (select * from tab where name='rado');
If you really want the particular strings, use a case, something like:
select case when exists(select * from tab where name='rado') then
'true' else 'false' end;
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|