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 > !! Operator

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-05-11, 08:12
eperich eperich is offline
Registered User
 
Join Date: Sep 2001
Location: Vienna
Posts: 400
!! Operator

Hi all

I have to analyze a DB2 Application.
In SQL
case xy when 'X' then substr(x,2,3)!!' '
when 'Y' then substr(y,2,3)!!' '
else substr(z,2,9) end,

there is a !! operator used.
I cannot find it in the db2 docs.

Has anyone an idea for what it is good for ?
__________________
http://www.postgresql.org
--Postgresql is the only kind of thing--
Reply With Quote
  #2 (permalink)  
Old 08-05-11, 08:33
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
I presume it should be || or CONCAT from concatenate
the display can vary according some environment settings...
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 08-05-11, 09:27
eperich eperich is offline
Registered User
 
Join Date: Sep 2001
Location: Vienna
Posts: 400
That's what I thought but i typed the Pipes on the screen and one can see the difference between || and !!.
__________________
http://www.postgresql.org
--Postgresql is the only kind of thing--
Reply With Quote
  #4 (permalink)  
Old 08-06-11, 05:21
dbzTHEdinosaur dbzTHEdinosaur is online now
Registered User
 
Join Date: Jun 2007
Location: germany
Posts: 96
Quote:
Originally Posted by eperich View Post
That's what I thought but i typed the Pipes on the screen and one can see the difference between || and !!.
good, you can see the trees, but you still can't see the forest.
you need to understand that DB2 interprets things - based on site environmental variables, code page, etc ........)
differently than you do.

depending upon the complexity of your connects, it maybe that by the time db2 sees the sql, the ! has been converted to |.
__________________
Dick Brenholtz, Ami in Deutschland
Reply With Quote
  #5 (permalink)  
Old 08-10-11, 00:17
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
eperich - Join Date: Sep 2001

I don't think I've seen any user who joined prior to 2002 (at least not on DB2 forum)
Reply With Quote
  #6 (permalink)  
Old 08-10-11, 00:22
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
oops. taking my words back. Satya joined at the same time.
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