[firebase-br] substring - help

Moacir - GMail prismars em gmail.com
Qui Ago 6 11:06:33 -03 2009


Leonardo,

Select * from MinhaTabela where Substring(CampoA from 1 for 5)='TESTE'

Mas vc tem muitas outras opções

Select * from MinhaTabela where CampoA  starting 'TESTE' //-- Iniciando 
por...

Select * from MinhaTabela where CampoA  Like 'TESTE%'  //-- Iniciando por...

Select * from MinhaTabela where CampoA  Like '%TESTE' //-- Terminando por

Select * from MinhaTabela where CampoA  Like '%TESTE' //-- Contendo em 
qualquer posição

Select * from MinhaTabela where CampoA  containing 'TESTE' //-- Contendo 
em qualquer posição

Sucesso !!

Moacir


Leonardo Baldino escreveu:
> alguem sabe como eu faço um select que usa substring no where
>
>   




Mais detalhes sobre a lista de discussão lista