SQL Syntax for a single quote in a string.
- From: "lsg" <sgling07@xxxxxxxxx>
- Date: 23 Aug 2006 00:09:25 -0700
Hi,
I don't know how to write a syntax in SQL if there is a quote mark in a string.
Example :
Str := 'Sawal Afa'at'; <--- a'a
...
Add('update tbl set name='''+str+''''); ---> i used 3 single quote on both sides.
.... etc
this statement will give me error.
Can someone assist me how to solve this problem? Thanks in advance
Regards,
lsg
.
- Follow-Ups:
- Re: SQL Syntax for a single quote in a string.
- From: Bill Todd
- Re: SQL Syntax for a single quote in a string.
- From: George Wei
- Re: SQL Syntax for a single quote in a string.
- Prev by Date: Re: Preventing insert, update and deletes
- Next by Date: Re: Problems with ADO and Multithreading: List Index Out Of Bounds
- Previous by thread: How to get multi ref cursors returned by an Oracle stored procedure?
- Next by thread: Re: SQL Syntax for a single quote in a string.
- Index(es):
Relevant Pages
|