pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: William Shatner <shatner.william@gmail.com>
To: pgsql-novice@postgresql.org
To: pgsql-general@postgresql.org
To: pgsql-jdbc@postgresql.org
Subject: MS Access to PostgreSQL
Date: Fri, 11 Mar 2005 17:19:35 +0000
Message-ID: <9af1b1990503110919553a66ec@mail.gmail.com> (raw)

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



view thread (7+ messages)  latest in thread

Message-ID: <9af1b1990503110919553a66ec@mail.gmail.com>
Permalink:  ../9af1b1990503110919553a66ec@mail.gmail.com/
Also on:    postgresql.org/message-id/9af1b1990503110919553a66ec@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: shatner.william@gmail.com, pgsql-novice@postgresql.org, pgsql-general@postgresql.org
  Subject: Re: MS Access to PostgreSQL
  In-Reply-To: <9af1b1990503110919553a66ec@mail.gmail.com>
  References: <9af1b1990503110919553a66ec@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox