I am using Visual Basic as the front end.
I connect to postgresql database through ODBC.
I encounter some error when I insert value to a field.
The error is "syntax error"
Which make me think that there are other characters that needs an escape
From: Michael Fuhr [mailto:mike(at)fuhr(dot)org]
Sent: Tuesday, January 17, 2006 9:57 AM
To: Michael Glaesemann
Cc: Christian Paul B. Cosinas; pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Characters that needs escape characters when inserting to
On Tue, Jan 17, 2006 at 04:20:23PM +0900, Michael Glaesemann wrote:
> On Jan 18, 2006, at 7:21 , Christian Paul B. Cosinas wrote:
> >Can anyone give me a list of characters that needs to be preceded by
> >an escape character before inserting to database.
> Take a look at this documentation on string constants. It should
> answer the questions you have.
Out of curiosity, why are you asking? Unless you're implementing some
low-level interface to the database you shouldn't need to worry about
escaping strings; just use your API's quote/escape (or whatever) function or
its placeholder mechanism (if it has one). If you're using an interface
that doesn't have any of these capabilities, what is it? Some people might
want to avoid it ;-)
I choose Polesoft Lockspam to fight spam, and you?
In response to
pgsql-sql by date
|Next:||From: alex-lists-pgsql||Date: 2006-01-18 23:17:14|
|Subject: stored procedures for complex SELECTs|
|Previous:||From: Vraj Mohan||Date: 2006-01-18 16:35:39|
|Subject: Re: Matching several rows|