Fórum Prism + Firebird + DDEX #414486
23/03/2012
0
Amigos, alguem sabe me dizer porque o select abaixo não funciona utilizando
SqlDataSource...
O problema esta no LIKE c/ o %... Se tiro o % roda, mas ai não serve...
Será que é algum problema do DDEX, unsuported...
SELECT CODPRO, NOMPRO, VENPRO, GRUPRO, CATPRO FROM DSI_PRO WHERE (NOMPRO like ? + %)
Por Favor...
Obrigado.
Junior Zanca
Curtir tópico
+ 0Posts
23/03/2012
Bruno Leandro
SELECT CODPRO, NOMPRO, VENPRO, GRUPRO, CATPRO FROM DSI_PRO WHERE (NOMPRO like %||valorPesquisado)
Gostei + 0
27/03/2012
Junior Zanca
Não deu certo não...
Nem assim: SELECT CODPRO, NOMPRO, VENPRO FROM DSI_PRO WHERE(NOMPRO LIKE % + @Param2)
Mais alguem?
Obrigado...
Gostei + 0
27/03/2012
Bruno Leandro
Gostei + 0
27/03/2012
Junior Zanca
Tentei
SELECT CODPRO, NOMPRO, VENPRO FROM DSI_PRO WHERE (NOMPRO LIKE % || @Param2)
SELECT CODPRO, NOMPRO, VENPRO FROM DSI_PRO WHERE (NOMPRO LIKE %|| + @Param2)
SELECT CODPRO, NOMPRO, VENPRO FROM DSI_PRO WHERE (NOMPRO LIKE % + || + @Param2)
Passando por parametro não da certo...
Assim roda...
SELECT CODPRO, NOMPRO, VENPRO FROM DSI_PRO WHERE (NOMPRO LIKE %Teste)
Obrigado
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)