Solved

quote in quote

Posted on 1997-06-11
1
287 Views
Last Modified: 2010-04-06
Hi

I need to be able to build a string that equals

Select trade_close from trade where trade_date = '1995-05-09'

the above date has to be inside a pair of '

when I go g := ' Select trade_close from trade where trade_date = '1995-05-09' ' it does'nt work

How do I get a quote char inside a string

Thanks

Chris
0
Comment
Question by:chrisj051697
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
ygolan earned 100 total points
ID: 1336975
Use the quote character twice :

'Select .... where trade_date = ''1995-05-09'''

Note that the string ends with _3_ quotes - 2 for the actual quote and one to end the string.


0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question