Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to concatiante the 2 coloms

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
raju_rangam
Warnings : 1

New User


Joined: 31 Mar 2005
Posts: 25
Location: bangalore

PostPosted: Wed Jan 11, 2006 3:12 pm    Post subject: how to concatiante the 2 coloms
Reply with quote

hai friends,

how to concatinate the values of 2 coloms;

suppose

Table c1 Table c2
IBM Mainframes


iwant like

Table c3
IBMMainframes

regards
raju
Back to top
View user's profile Send private message

khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Wed Jan 11, 2006 3:35 pm    Post subject: Concatination
Reply with quote

Hi Raju,

Try this sorry if i m wrong..

SELECT C1,C2, CONCAT(C1,C2) FROM TABLE;

Let me know if it is wrong...
Back to top
View user's profile Send private message
raju_rangam
Warnings : 1

New User


Joined: 31 Mar 2005
Posts: 25
Location: bangalore

PostPosted: Wed Jan 11, 2006 4:03 pm    Post subject: hai KA,
Reply with quote

hi,

thanks
its working....


regards
raju
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:



Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us