All community
This category
This board
Knowledge base
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results forÂ
ShowÂ
 onlyÂ
|
Search instead forÂ
Did you mean:Â
Exit
Global community
Language:
Deutsch
English
Español
Français
Português
日本語コミュニティ
Dedicated community for Japanese speakers
í•œêµ ì»¤ë®¤ë‹ˆí‹°
Dedicated community for Korean speakers
Sign In
Home
ColdFusion
Discussions
Selecting Data With an Apostrophe
Home
ColdFusion
Discussions
Selecting Data With an Apostrophe
0
Upvote
Selecting Data With an Apostrophe
LyndonPatton
Participant
,
/t5/coldfusion-discussions/selecting-data-with-an-apostrophe/td-p/952270
Mar 16, 2008
Mar 16, 2008
Copy link to clipboard
Copied
I must be missing something simple, this apostrophe issue is getting the best of me...
I have an Access table of county names, one of them is O'Brien.
After reading all that I can find I've tried all of these queries but never get a record back. Please help I'm obviously confused.
I tried all three of these and I get zero records every time:
Lyndon
Views
275
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Dan_Bracuk
LEGEND
,
Mar 16, 2008
Mar 16, 2008
Dan_Bracuk
•
LEGEND
,
Mar 16, 2008
Mar 16, 2008
The 2nd one should have worked. Maybe it's the data. What happens when you try
where county = 'O''Brien'
that's two single quotes between the O and the B.
Also try
where county like 'O%'
Votes
0
Upvote
Translate
Translate
Jump to answer
2 Replies
2
Jump to latest reply
Correct answer by
Dan_Bracuk
LEGEND
,
/t5/coldfusion-discussions/selecting-data-with-an-apostrophe/m-p/952271#M87072
Mar 16, 2008
Mar 16, 2008
Copy link to clipboard
Copied
The 2nd one should have worked. Maybe it's the data. What happens when you try
where county = 'O''Brien'
that's two single quotes between the O and the B.
Also try
where county like 'O%'
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LyndonPatton
AUTHOR
Participant
,
/t5/coldfusion-discussions/selecting-data-with-an-apostrophe/m-p/952272#M87073
Mar 16, 2008
Mar 16, 2008
Copy link to clipboard
Copied
LATEST
Good call Dan. The user typed an accent` instead of apostrophe. It was very hard to see.
Thanks
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Post Reply
Preview
Exit Preview
never-displayed
You must be signed in to add attachments
never-displayed
Â
Resources
Documentation
ColdFusion User Guide