Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Code Re-Use Via Views
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
![]() |
![]() |