handling special characters in sql strings

From: Markus Wagner <wagner(at)imsd(dot)uni-mainz(dot)de>
To: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: handling special characters in sql strings
Date: 2001-03-19 12:14:14
Message-ID: 3AB5F816.B42DA79E@imsd.uni-mainz.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I need to insert and retrieve strings containing special characters (e.
g. "'") and I want a C function to prepare my strings automatically. Is
it ok to just insert a "\" before each special character? And what range
of characters will need this handling?

Thanks,

Markus

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Sarathi, Vijai (CAP) 2001-03-19 14:09:14 request for tutorial on plsql
Previous Message Richard H 2001-03-19 11:35:57 Re: MultiByte strings