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 > Oracle specific LPAD, RPAD Equivalent in DB2 UDB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-29-04, 02:24
manishkumar manishkumar is offline
Registered User
 
Join Date: Nov 2004
Posts: 1
Question Oracle specific LPAD, RPAD Equivalent in DB2 UDB. Help Required--Matter Urgent

Hi friends,
I am trying to port an Oracle Database to DB2 UDB. I have a situation at hand, which demands that I convert a select statement with LPAD and RPAD functions to UDB. For the sake of clarity, the SQL Statement is as follows:

insert into fgt_notify_queue(id,time_stamp,event_id,object_id, trigger_time,domain_id, flags)
values( 'noque' || lpad(ltrim(rtrim(to_char(fgt_notify_queue_seq.next val))), 15, '0') ,xxnewts, xxevent_id, xobj_id, xnotify_on, xdomain_id, '0000000000');


Kindly help me out as I am new to DB2 UDB and SQL-PL, I am an Oracle guy and have been handed over this task.
Thanks in Advance.
Manish Kumar.

Last edited by manishkumar; 11-29-04 at 03:44.
Reply With Quote
  #2 (permalink)  
Old 11-29-04, 08:15
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,

Please read Must Read before posting. Number 3 is interesting.

Grofaty

Last edited by grofaty; 11-29-04 at 08:23.
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