Pessoal, tenho o seguinte select

SELECT * FROM TABELA
WHERE (CAMPO1 LIKE ‘STRING_A%’)
OR(CAMPO1 LIKE ‘STRING_B%’)
OR(CAMPO1 LIKE ‘STRING_C%’)

Observe que tenho que fazer varios ORs com Like porque as strings são o inicio 
de palavras

Sei que o IN(‘STR_A’,’STR_B’,’STR_C’) 

seria mais eficiente e elegante, porem ele só me dá a opcao de string fixa
Existe outra forma de fazer o Select acima ?
Seria algo do tipo

SELECT * FROM TABELA
WHERE (CAMPO1 IN(‘STR_A%’,’STR_B%’,’STR_C%’))





Marcelo Silva
--------------------------------------------------
Desenvolvedor Delphi, PHP
msn: [email protected]
cel.: (11) 9693-4251
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a