Fórum dúvida com SQL #371065
06/06/2009
0
ao invés de:
´select * from TABELA where CAMPO1=´TEXTO´ or CAMPO2=´TEXTO´´
usar algo tipo:
´select * from TABELA where CAMPO1 or CAMPO2 = ´TEXTO´´
ou:
´select * from TABELA where CAMPO1+CAMPO2 = ´TEXTO´´
ou alguma idéia de concatenar os campos e fazer a checagem com apenas 1 parametro ...
abraços !!
Danielrsanches
Curtir tópico
+ 0Posts
07/06/2009
Danielrsanches
select * from TABELA where concat( ifnull(CAMPO1,´´) , ifnull(CAMPO2,´´) , ifnull(CAMPO3,´´) ) like ´¬TEXTO¬´
obrigado a todos !!
abraços !!!
Gostei + 0
07/06/2009
Danielrsanches
select * from TABELA where concat( ifnull(CAMPO1,´´) , ifnull(CAMPO2,´´) , ifnull(CAMPO3,´´) ) like ´¬TEXTO¬´
obrigado a todos !!
abraços !!!
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)