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 > Oracle > Sys_Connect_By_Path issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-20-09, 09:01
mohsin_550468 mohsin_550468 is offline
Registered User
 
Join Date: Mar 2009
Posts: 3
Sys_Connect_By_Path issue

I have a view in which i have following after where condition:
where ch.container_hierarchy_id in
(select
REPLACE(sys_connect_by_path(lpad(ci.container_id,1 0,'0'),' '),' ','') pathNoSequence
from container_item ci
where ((container_child_id is null) OR (container_child_id = getRelevantContainerId(s.student_id,container_chil d_id,ci.object_lookup_id,ci.object_type,sysdate)))
start with ci.container_id = ch.root_container_id
connect by prior getRelevantContainerId(s.student_id,ci.container_c hild_id,ci.object_lookup_id,ci.object_type,sysdate ) = ci.container_id)

When i run the view i got the below error:
ORA-30004: when using SYS_CONNECT_BY_PATH function, cannot have seperator as part of column value
The Container_id is integer.Please help in resolving the above issue.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 07-20-09, 16:06
The_Duck The_Duck is offline
Registered User
 
Join Date: Jul 2003
Posts: 2,292
did you try removing the lpad? once it comes out of the lpad it is no longer numeric due to your adding characters to it. You did realize that correct?
__________________
- The_Duck
you can lead someone to something but they will never learn anything ...
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