473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Start With Connect by usage without Prior keyword

HI,
Is there a usage for something like this:

Select MyColumn
From MyTable
Start with MyCol = aNumber
Connect By MyCol = MyOtherCol

If not, its a bit weird that Oracle does not raise an error since the
keyword PRIOR is not used like this:

Select MyColumn
From MyTable
Start with MyCol = aNumber
Connect By Prior MyCol = MyOtherCol

Thank you,
Christian Cote
Jul 19 '05 #1
2 8086

"Christian" <cc*******@yahoo.com> wrote in message
news:99**************************@posting.google.c om...
| HI,
| Is there a usage for something like this:
|
| Select MyColumn
| From MyTable
| Start with MyCol = aNumber
| Connect By MyCol = MyOtherCol
|
| If not, its a bit weird that Oracle does not raise an error since the
| keyword PRIOR is not used like this:
|
| Select MyColumn
| From MyTable
| Start with MyCol = aNumber
| Connect By Prior MyCol = MyOtherCol
|
| Thank you,
| Christian Cote

no reasonable usage that i can see, but it does appear that the where-as the
syntax is not checked, any statement that leaves out the PRIOR (cannot leave
out the CONNECT BY) will either return no rows or will raise 'ORA-01436:
CONNECT BY loop in user data'

++ mcs
Jul 19 '05 #2
"Mark C. Stock" <mcstockX@Xenquery .com> wrote in message news:<_u********************@comcast.com>...
"Christian" <cc*******@yahoo.com> wrote in message
news:99**************************@posting.google.c om...
| HI,
| Is there a usage for something like this:
|
| Select MyColumn
| From MyTable
| Start with MyCol = aNumber
| Connect By MyCol = MyOtherCol
|
| If not, its a bit weird that Oracle does not raise an error since the
| keyword PRIOR is not used like this:
|
| Select MyColumn
| From MyTable
| Start with MyCol = aNumber
| Connect By Prior MyCol = MyOtherCol
|
| Thank you,
| Christian Cote

no reasonable usage that i can see, but it does appear that the where-as the
syntax is not checked, any statement that leaves out the PRIOR (cannot leave
out the CONNECT BY) will either return no rows or will raise 'ORA-01436:
CONNECT BY loop in user data'


select rownum from dual connect by rownum < 100

I'm not sure about the earlier versions but since 9.2 it certainly
won't give you 'ORA-01436'.
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
2
by: vikas.bhatia | last post by:
Is this still true? http://groups.google.com/group/comp.databases.ibm-db2/browse_thread/thread/58c6c36ce9006d50/778f98749d8e2983?lnk=st&q=DB2+Connect+product+license&rnum=6#778f98749d8e2983 would...
6
by: RdS | last post by:
hi, #1 i am looking through some code and have a question. The class I am looking at is a derived class that has one constructor (new). it is coded as: public sub new () .. .. .. end sub
6
by: shorti | last post by:
db2 8.1 fix pack 12 on AIX 5.3 This is a newly configured HADR machine. The HADR was up and running. I was 'playing' around some on the standby and did a db2 deactivate and things sort of went...
3
by: Ehsan | last post by:
hi coulde any one show me the usage of "yield" keyword specially in this example: """Fibonacci sequences using generators This program is part of "Dive Into Python", a free Python book for...
4
by: Adisc | last post by:
Hi, How can I run a query to fetch the hierarchy without using the command - connect by prior? I want to use this query by BO, which does not support the connect byqstart with option. thanks
0
by: Vinod Sadanandan | last post by:
Fast-Start Failover An Overview In Dataguard Environment ============================================================================= This article describes the automatic fast start failover...
2
by: Christian | last post by:
HI, Is there a usage for something like this: Select MyColumn From MyTable Start with MyCol = aNumber Connect By MyCol = MyOtherCol If not, its a bit weird that Oracle does not raise an...
12
by: iahamed | last post by:
Hi Everyone, I got two parts of my advance search to work, I am running out of Logic to connect the third. My mind is in swing! Pleaseeeeeeeee Help me. I have 3 Fiels to search, the First two...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.