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 > DB2 > Inserting special characters in DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-02-10, 08:38
div17283 div17283 is offline
Registered User
 
Join Date: Apr 2010
Posts: 2
how to insert semicolon using query?
Reply With Quote
  #2 (permalink)  
Old 04-02-10, 08:56
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
INSERT INTO MyTable (Col1) values (';')

Andy
Reply With Quote
  #3 (permalink)  
Old 04-02-10, 09:02
div17283 div17283 is offline
Registered User
 
Join Date: Apr 2010
Posts: 2
by the way prob solved. i have used CHAR(59) in place of semicolon
Reply With Quote
  #4 (permalink)  
Old 04-06-10, 16:19
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by div17283 View Post
by the way prob solved. i have used CHAR(59) in place of semicolon
This only works if you know the database encoding. E.g., if it is EBCDIC, you'd need CHAR(94) instead of CHAR(59). The latter works for ASCII en Unicode, though.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
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