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

Inserting an Apostrophe in DB2 table


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

New User


Joined: 07 Aug 2007
Posts: 20
Location: chennai

PostPosted: Thu Jun 04, 2009 4:43 pm
Reply with quote

Guys,

Is there a method to insert an apostrophe in a DB2 Table.

Cheers
Sudhir
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Jun 04, 2009 5:02 pm
Reply with quote

Giri,
Code:
 insert into userid.empy values(1234,'RAM'''); 


You have put 2 Single Quotations, for a single quote to appear in the table.

Sushanth
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Jun 04, 2009 5:28 pm
Reply with quote

Just some seconds time to search gives this to me...

www.ibmmainframes.com/viewtopic.php?t=36901&highlight=apostrophe
www.ibmmainframes.com/viewtopic.php?t=29213&highlight=apostrophe
Back to top
View user's profile Send private message
sgiri
Warnings : 1

New User


Joined: 07 Aug 2007
Posts: 20
Location: chennai

PostPosted: Fri Jun 05, 2009 10:51 am
Reply with quote

Thanks Guys..
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 Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top