Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Inserting an Apostrophe in DB2 table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Inserting an Apostrophe in DB2 table
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: 1013
Location: India

PostPosted: Thu Jun 04, 2009 5:02 pm    Post subject:
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    Post subject:
Reply with quote

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

http://www.ibmmainframes.com/viewtopic.php?t=36901&highlight=apostrophe
http://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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us