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 > error with concat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-31-06, 06:33
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
error with concat

when issuing a simple concat command through db2 clp ,its not working giving error
however in interactive mode its working fine...

SQLLIB\BIN>db2 values('rahul'||'singh')
.... error SQL0104N

however with interactive mode

db2 => values('rahul'||'singh')

1
----------
rahulsingh

what can be the problem??

Thanks,
Rahul Singh
Reply With Quote
  #2 (permalink)  
Old 08-31-06, 06:48
nagbuchi nagbuchi is offline
Registered User
 
Join Date: Feb 2005
Location: Bangalore,India
Posts: 39
Use DOUBLE QUOTES to diffrentiate the DB2 and OS commands.

db2 "values('rahul'||'singh')"
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