Help with statement

Поиск
Список
Период
Сортировка
От Sabio - PSQL
Тема Help with statement
Дата
Msg-id 424DA959.3060004@ceroriesgo.co.cr
обсуждение исходный текст
Список pgsql-admin
    public int cedula_actualizar(String strcedula, String strids) {
        PreparedStatement ST = null;
        int retVal = 0;
        try {
            ST = conexion.prepareStatement("UPDATE maestro_partes SET
cedula='"+strcedula+"' WHERE consecutivo_identificacion IN ("+strids+")");
            retVal = ST.executeUpdate();
            ST.close();
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
        return retVal;
    }


When execute this function with single data like this 3434 in strids, it
works, but when is pass somethine like this: 12232,3434,3,4545,34,3
don't work, Why?
In database cedula is varchar and consecutivo_identificacion is int



В списке pgsql-admin по дате отправления:

Предыдущее
От: "Chris White (cjwhite)"
Дата:
Сообщение: Help understanding VACUUM info on 7.4.5
Следующее
От: Sabio - PSQL
Дата:
Сообщение: Possible Bug in PreparedStatement