X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0D1065332A for ; Fri, 1 Apr 2005 21:04:32 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 43544-01 for ; Fri, 1 Apr 2005 20:04:22 +0000 (GMT) Received: from ceroriesgo.co.cr (unknown [200.91.71.251]) by svr1.postgresql.org (Postfix) with ESMTP id 0F2AD53320 for ; Fri, 1 Apr 2005 21:04:21 +0100 (BST) Received: from [192.168.0.110] by ceroriesgo.co.cr (MDaemon.PRO.v7.2.3.R) with ESMTP id md50000017196.msg for ; Fri, 01 Apr 2005 14:05:21 -0800 Message-ID: <424DA959.3060004@ceroriesgo.co.cr> Date: Fri, 01 Apr 2005 14:04:41 -0600 From: Sabio - PSQL User-Agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: PostgreSQL Admin Subject: Help with statement Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: slopez@ceroriesgo.co.cr X-Spam-Processed: ceroriesgo.co.cr, Fri, 01 Apr 2005 14:05:21 -0800 (not processed: message from valid local sender) X-MDRemoteIP: 192.168.0.110 X-Return-Path: slopez_pg@ceroriesgo.co.cr X-MDaemon-Deliver-To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.156 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/20 X-Sequence-Number: 17033 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