select
case when exists (select true from table_name where table_column=?)
then 'true'
else 'false'
end;
Men det ville være bedre bare at returnere boolesk i stedet for streng:
select exists (select true from table_name where table_column=?);