pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedSubstitute for this oracle query in postGre
2+ messages / 2 participants
[nested] [flat]
* Substitute for this oracle query in postGre
@ 2004-04-04 08:17 Kamalraj Singh Madhan <kamalr@networkprograms.com>
2004-04-04 10:14 ` Re: Substitute for this oracle query in postGre Christopher Kings-Lynne <chriskl@familyhealth.com.au>
0 siblings, 1 reply; 2+ messages in thread
From: Kamalraj Singh Madhan @ 2004-04-04 08:17 UTC (permalink / raw)
To: pgsql-performance
Hi Friends,
Does anybody know the substitute of the oracle function 'connect by
prior' in postgre sql.
The query is basically being used to get a tree structure of records. The
query in oracle is :-
select pkmsgid
from mstmessage
connect by prior pkmsgid = msgparentid
start with msgparentid = 1
Kindly suggest.
regards
Kamal
*********************************************************************
Network Programs is a SEI CMM Level 5 Certified Company
********************************************************************
The information contained in this communication (including any attachments) is
intended solely for the use of the individual or entity to whom it is addressed
and others authorized to receive it. It may contain confidential or legally
privileged information. If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking any action in
reliance on the contents of this information is strictly prohibited and may be
unlawful. If you have received this communication in error, please notify us
immediately by responding to this email and then delete it from your system.
Network Programs (India) Limited is neither liable for the proper and complete
transmission of the information contained in this communication nor for any
delay in its receipt.
*********************************************************************
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Substitute for this oracle query in postGre
2004-04-04 08:17 Substitute for this oracle query in postGre Kamalraj Singh Madhan <kamalr@networkprograms.com>
@ 2004-04-04 10:14 ` Christopher Kings-Lynne <chriskl@familyhealth.com.au>
0 siblings, 0 replies; 2+ messages in thread
From: Christopher Kings-Lynne @ 2004-04-04 10:14 UTC (permalink / raw)
To: Kamalraj Singh Madhan <kamalr@networkprograms.com>; +Cc: pgsql-performance
Hi,
Try looking at the contrib/tablefunc add-in module.
Chris
Kamalraj Singh Madhan wrote:
> Hi Friends,
> Does anybody know the substitute of the oracle function 'connect by
> prior' in postgre sql.
> The query is basically being used to get a tree structure of records. The
> query in oracle is :-
>
> select pkmsgid
> from mstmessage
> connect by prior pkmsgid = msgparentid
> start with msgparentid = 1
>
> Kindly suggest.
>
> regards
> Kamal
>
>
>
> *********************************************************************
> Network Programs is a SEI CMM Level 5 Certified Company
> ********************************************************************
> The information contained in this communication (including any attachments) is
> intended solely for the use of the individual or entity to whom it is addressed
> and others authorized to receive it. It may contain confidential or legally
> privileged information. If you are not the intended recipient you are hereby
> notified that any disclosure, copying, distribution or taking any action in
> reliance on the contents of this information is strictly prohibited and may be
> unlawful. If you have received this communication in error, please notify us
> immediately by responding to this email and then delete it from your system.
> Network Programs (India) Limited is neither liable for the proper and complete
> transmission of the information contained in this communication nor for any
> delay in its receipt.
> *********************************************************************
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-04-04 10:14 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-04-04 08:17 Substitute for this oracle query in postGre Kamalraj Singh Madhan <kamalr@networkprograms.com>
2004-04-04 10:14 ` Christopher Kings-Lynne <chriskl@familyhealth.com.au>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox