IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to insert name O' CONNELL


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
suresh_gop1
Warnings : 1

New User


Joined: 23 May 2006
Posts: 18

PostPosted: Wed Jul 09, 2008 9:11 pm
Reply with quote

Hi,

How to insert char O 'CONNELL? i tried as insert into table name values ('O 'CONNELL'). but it returns error. how to correct it.
Back to top
View user's profile Send private message
Manuneedhi K

Active User


Joined: 07 May 2008
Posts: 115
Location: Chennai

PostPosted: Wed Jul 09, 2008 9:32 pm
Reply with quote

Whenever you want to insert a single quote you must use two single quotes .

(i.e) To insert O'Connell you must use 'O''Connell' in the values of the insert.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Jul 09, 2008 9:32 pm
Reply with quote

suresh_gop1 wrote:
Hi,

How to insert char O 'CONNELL? i tried as insert into table name values ('O 'CONNELL'). but it returns error. how to correct it.


It would have nice if you had provided the error information.

try 'o ''connell'
Back to top
View user's profile Send private message
the_gautam

Active User


Joined: 05 Jun 2005
Posts: 165
Location: Bangalore

PostPosted: Thu Jul 10, 2008 3:35 pm
Reply with quote

you may use the escape character as well...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
No new posts Identify Program Insert DB2 7
No new posts Insert trailer for non empty file only DFSORT/ICETOOL 6
No new posts Merge files with a key and insert a b... DFSORT/ICETOOL 6
Search our Forums:

Back to Top