0
I wonder if it has a function or if it could be done with a select
, search by e-mail field of a table. Example:
select PPESSOA.EMAIL from PPESSOA where PPESSOA.NOME like
'ABNER FONTOURA C,RÊA'
'ADAILTON PEREIRA DE SOUZA'
'ADALBERTO ROMUALDO PEREIRA HENRIQUE',
'ADELINA MARIA GOMES SCHETTINI ' ,
'ADELINA MARIA VASCONCELOS DE OLIVEIRA ' ,
'ADELLE KARINNE NASCIMENTO SILVA' ,
'ADEMIR VIEIRA DE MELO GARCIA' ,
'ADENILSON OLIVEIRA ANDRADE' ,
'ADENILSON ROBERTO JOSE PEREIRA' ,
'ADILLO LUIZ FARIA MEZZOMO' ,
'ADILSON DA SILVA ALVES ',
'ADILSON MARCOS MENDES ' ,
'ADMILSO ANTONIO DA SILVA ' ,
'ADMILSON SILVA FINTELMAN ' ,
'ADRIANA ALMEIDA DE SOUZA ' ,
'ADRIANA APARECIDA ALVES DE FREITAS ' ,
'ADRIANA APARECIDA CAETANO DA SILVA ' ,
and has over 3000 records..
How I do?
These 3000 records are in another table?
– Guilherme Portela
Of more information, why these guys will be selected, what they have in comun...
– LucasMotta
I’m sorry I couldn’t tell you, but they’re all on the same table.. i selected this way: select PPESSOA.EMAIL from PPESSOA Where PPESSOA.NAME IN ('name1', 'Nome2',...) so there are spaces between the quotes and Sql is not returning the result due to these spaces between the name and the quotes; 'name1 ',
– Felipe
@Felipe why are you searching by name? What table structure?
– Tiedt Tech
Use locate and replace, replace the
espaço
+apostrofe
by just oneapostrofe
– LucasMotta