Re: Special characters in SQL queries

From: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>
To: pgsql-sql(at)postgresql(dot)org
Cc: vernonw(at)gatewaytech(dot)com
Subject: Re: Special characters in SQL queries
Date: 2003-03-11 15:32:33
Message-ID: 3E6E0191.B8F06EBB@rodos.fzk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

>
> First a single quote in text, when a backforward slash in a file path,
what other special characters need padded in t
wo
> backslashes before using the data in a SQL statement?
>
> After hours' search in the PostgreSQL archive, I find a releted
information on the http://www.ca.postgresql.org/users
-
> lounge/docs/7.2/postgres/arrays.html. It's about array data though.
>
> How can I find out those characters so that I can pre-process them
before a SQL query?
>
What about
size_t PQescapeString (char *to, const char *from, size_t length);
from the libpq - C Library?

Regards, Christoph

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Andreas Pflug 2003-03-11 15:36:12 Re: How to notice column changes in trigger
Previous Message Achilleus Mantzios 2003-03-11 12:14:30 Re: Hex Integer Input