MS Access to PostgreSQL

From: William Shatner <shatner(dot)william(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org, pgsql-jdbc(at)postgresql(dot)org
Subject: MS Access to PostgreSQL
Date: 2005-03-11 17:19:35
Message-ID: 9af1b1990503110919553a66ec@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-jdbc pgsql-novice

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Browne 2005-03-11 17:19:42 Re: Best practices: Handling Daylight-saving time
Previous Message tony 2005-03-11 16:57:30 speak of the devil

Browse pgsql-jdbc by date

  From Date Subject
Next Message Shelby Cain 2005-03-11 17:31:36 Re: MS Access to PostgreSQL
Previous Message Sergio Lob 2005-03-11 15:55:35 Re: [BUGS] BUG #1523: precision column value returned from

Browse pgsql-novice by date

  From Date Subject
Next Message Shelby Cain 2005-03-11 17:31:36 Re: MS Access to PostgreSQL
Previous Message Kumar S 2005-03-11 16:45:15 complex queries