How can I return the column names of a table according to search criteria? I want to return the columns that are with 'S' option, all fields is a char of 1 that receives 's' or 'n'
select
b.livros,
b.jogos,
b.cinema
from
tb_cadastro_usuario a
inner join tb_assuntos_interesse b on a.idusuario = b.idusuario