If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > How do I get a single quote into a VARCHAR field?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-28-06, 10:58
spjansen spjansen is offline
Registered User
 
Join Date: Aug 2006
Posts: 15
How do I get a single quote into a VARCHAR field?

Hello,

I have the Problem, that I want to put a _'_ single quote into a varchar field.
Because I have to put the text for the field into single quotes, the one inside my text, breaks the statement.
I tried to put the text into _"_ double quotes but that produces an odd error message.
There are a lot of textfields I have to fill with my statement and all the other got single quotes around their values only the one field that has to contain a text with a singel quote in it was surroundes with double quotes.
Reply With Quote
  #2 (permalink)  
Old 08-29-06, 09:57
spjansen spjansen is offline
Registered User
 
Join Date: Aug 2006
Posts: 15
pad it with another single quote, stupid
_'_ => _'_'_
thanks to myself
Reply With Quote
  #3 (permalink)  
Old 08-30-06, 10:24
meiwen meiwen is offline
Registered User
 
Join Date: Oct 2005
Posts: 30
lucky you!
till now, my question here never really get replied.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On