Solved

quote in quote

Posted on 1997-06-11
1
283 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 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