select
case when exists (select true from table_name where table_column=?)
then 'true'
else 'false'
end;
Ma sarebbe meglio restituire boolean invece di string:
select exists (select true from table_name where table_column=?);
select
case when exists (select true from table_name where table_column=?)
then 'true'
else 'false'
end;
Ma sarebbe meglio restituire boolean invece di string:
select exists (select true from table_name where table_column=?);