X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F2B1B566FF for ; Fri, 11 Mar 2005 17:19:40 +0000 (GMT) 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 08443-04 for ; Fri, 11 Mar 2005 17:19:36 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by svr1.postgresql.org (Postfix) with ESMTP id 9789256671 for ; Fri, 11 Mar 2005 17:19:35 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 58so882580wri for ; Fri, 11 Mar 2005 09:19:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=BAIbjWcjrZ81OprjrNstdLUedQXOif5mvhw6044p1hz5QGFl9aQHlJpeRK3GvqA3DyiMqb7z9Fktxjta/H8GvQuDl1htU/ibcb7clMg4qeDo2rgXla2HJIyirxooVNvB+1FCHZCYx+wq3q0WuFYW28Kqgwlqw0zmHke0tBXo5gE= Received: by 10.54.4.8 with SMTP id 8mr2876484wrd; Fri, 11 Mar 2005 09:19:35 -0800 (PST) Received: by 10.54.14.36 with HTTP; Fri, 11 Mar 2005 09:19:35 -0800 (PST) Message-ID: <9af1b1990503110919553a66ec@mail.gmail.com> Date: Fri, 11 Mar 2005 17:19:35 +0000 From: William Shatner Reply-To: William Shatner To: pgsql-novice@postgresql.org, pgsql-general@postgresql.org, pgsql-jdbc@postgresql.org Subject: MS Access to PostgreSQL Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.476 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200503/477 X-Sequence-Number: 74792 I have recently migrated from MS Access to PostgreSQL.Previously I had a SQL command ResultSet aGroupResultSet = aGroupPathStmt.executeQuery( "SELECT \"groupID\",\"fullpath\" FROM \"groups\" WHERE \"fullpath\" Like '" + aPath + "'"); where aPath was equal to 'folder\another folder\%'. The field to be edited stores the full path in the format 'folder\folder1\folder2' and so on... The purpose being to change all groups at this level of the hieracarchy and below, this was achieved using the '%' in Access, this however doesn't seem to work in PostgreSQL, it doesn't error out but it just seems to see the '%' as a normal character. How can this be done in PostgreSQL? Many Thanks, B