Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Code Re-Use Via Views

Re: Code Re-Use Via Views

From: Malcolm Dew-Jones <yf110_at_vtn1.victoria.tc.ca>
Date: 9 Jan 2006 22:03:09 -0700
Message-ID: <43c34e1d$1@news.victoria.tc.ca>


windcliff (windcliff_at_gmail.com) wrote:
: One of the ideas that's been talked about in my group is using text
: pre-processing to simulate this, e.g., if two queries share the same
: select list and group by clauses but differe in having clauses, we
: should be able to use comething like the C preprocessor to minimize the
: textual repetition at bare minimum.

: I've thought about using pipelined functions or returning cursors from
: functions, but my gut tells me joining to their output will be slow. I
: guess I'll try benchmarking.

If you use sql*plus as the tool that runs your DDL, then you can use define and @ to include any amount of useful shared snippets of sql.

e.g. various files

etc etc Received on Mon Jan 09 2006 - 23:03:09 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US