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 > rtrim function

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-31-07, 11:42
rajaryan4545 rajaryan4545 is offline
Registered User
 
Join Date: Nov 2007
Posts: 27
rtrim function

hi guys,

can u plz explain how does the below statement works.and also i want to know

what is that get_attri value. and how does it function inthe given statement.

select a,rtrim(ps.get_attri_value (32, s.no, 4964)) as md from ps.sales;

i want to run such a statement on db2V8.2 on solaris.


Thanks
Reply With Quote
  #2 (permalink)  
Old 12-31-07, 12:31
nidm nidm is offline
Registered User
 
Join Date: May 2003
Posts: 113
Quote:
Originally Posted by rajaryan4545
hi guys,

can u plz explain how does the below statement works.and also i want to know

what is that get_attri value. and how does it function inthe given statement.

select a,rtrim(ps.get_attri_value (32, s.no, 4964)) as md from ps.sales;

i want to run such a statement on db2V8.2 on solaris.


Thanks

there is a book/document called SQL reference, which you should have it handy:

The RTRIM function removes blanks or hexadecimal zeros from the end of a string expression. The RTRIM function returns the same results as the STRIP function with TRAILING specified: STRIP(string-expression,TRAILING)
Reply With Quote
  #3 (permalink)  
Old 01-01-08, 17:00
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
GET_ATTRI_VALUE is a user-defined function that someone created in your database. It is not one of DB2's built-in functions.

p.s: STRIP is available in DB2 LUW V9 onwards and not in V8.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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