Re: SQL statement contain " character
- From: Dave Albiston <mail@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 28 Jan 2006 17:48:40 +0000
The problem character is a double quote, not 2 single quotes. It is used as an abbreviation for inches. Since the application is used by engineers, it occurs fairly often.
I tried doubling the double quote and also embedding it between single quotes. Neither worked.
Viatcheslav V. Vassiliev wrote:
Note that in Delphi you should double number of quotes - you double quote once for MS SQL Server, another time - for Delphi:
sql := 'update TableName set TextField = ''Could not save with '''' in text''';
.
- Follow-Ups:
- Re: SQL statement contain " character
- From: Brian Bushay TeamB
- Re: SQL statement contain " character
- References:
- SQL statement contain " character
- From: Dave Albiston
- Re: SQL statement contain " character
- From: Viatcheslav V. Vassiliev
- SQL statement contain " character
- Prev by Date: Re: Ado inside dll ?
- Next by Date: Re: SQL statement contain " character
- Previous by thread: Re: SQL statement contain " character
- Next by thread: Re: SQL statement contain " character
- Index(es):