Os elementos do PreparedStatement come�am em 1.

        Algu�m sabe pq?

        Rafael Leite
        Analista de Sistemas - SAFF
        Softplan/Poligraph
        Sistema da Qualidade Certificado - ISO 9001 - BVQI - INMETRO
        Fone/Fax: 0xx(48) 3027-8000
        http://www.softplan.com.br


At 16:59 04/02/2003 -0200, you wrote:
Pessoal, estou tentando montar uma rotina de montagem do meu dml select, ex:
public static final String SELECT = "select ? from ? ? ?";
 
no factory do select para uma table vai ter:

PreparedStatementps =
this.database.getConnection().prepareStatement(Constantes.SELECT);

ps.setString(0,
this.fieldName);

ps.setString(1,
this.tableName);

ps.setString(2,
this.where);

ps.setString(3,
this.orderBy);

crs.populate(ps.executeQuery());

Aqui ta dando erro Parameter index out of rang (0 > 5), como fazer com q essa id�ia funcione

=====================================
George Queiroz
Analista/Programador
Alocado a www.informatec-sp.com
ICQ UIN#30519911
DDR +55 11 3868-6713
23d5e13.jpg
=====================================

Responder a