Home » SQL & PL/SQL » SQL & PL/SQL » pipeline?
pipeline? [message #615763] Mon, 09 June 2014 02:26 Go to next message
hahaie
Messages: 194
Registered: May 2014
Senior Member
Hello.
Who can be a very simple example of a pipe (with simple tables) to tell me?
Grateful
Re: pipeline? [message #615766 is a reply to message #615763] Mon, 09 June 2014 02:33 Go to previous messageGo to next message
Lalit Kumar B
Messages: 3174
Registered: May 2013
Location: World Wide on the Web
Senior Member
Did you even search before posting here? https://asktom.oracle.com/pls/asktom/f?p=100:11:::::P11_QUESTION_ID:19481671347143
Re: pipeline? [message #615768 is a reply to message #615763] Mon, 09 June 2014 02:43 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
It depends on what you mean by this.
* Use of pipelined function
* Use of DBMS_PIPE package?

Which pipe are you talking about? Explain.

Simple example of pipelined function:
SQL> create or replace function get_n (n integer)
  2    return sys.odcinumberlist
  3    pipelined
  4  is
  5  begin
  6    for i in 1..n loop
  7      pipe row (i);
  8    end loop;
  9  end;
 10  /

Function created.

SQL> select * from table(get_n(10));
COLUMN_VALUE
------------
           1
           2
           3
           4
           5
           6
           7
           8
           9
          10

10 rows selected.


DBMS_PIPE package is used to communicate between different sessions.

[Updated on: Mon, 09 June 2014 02:44]

Report message to a moderator

Re: pipeline? [message #615772 is a reply to message #615768] Mon, 09 June 2014 03:16 Go to previous messageGo to next message
hahaie
Messages: 194
Registered: May 2014
Senior Member
use pipe line in view...
Re: pipeline? [message #615775 is a reply to message #615766] Mon, 09 June 2014 03:38 Go to previous messageGo to next message
hahaie
Messages: 194
Registered: May 2014
Senior Member
"Lalit Kumar B" You can not rush this link to know what did you give to what!!
I want a simple example of the pipe line in the view(plsql oracle)...

[Updated on: Mon, 09 June 2014 03:52]

Report message to a moderator

Re: pipeline? [message #615777 is a reply to message #615775] Mon, 09 June 2014 03:44 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Your posts are quite cryptic, you know you are not limited in the number of words you can write and post.

Re: pipeline? [message #615782 is a reply to message #615775] Mon, 09 June 2014 04:07 Go to previous message
Lalit Kumar B
Messages: 3174
Registered: May 2013
Location: World Wide on the Web
Senior Member
hahaie wrote on Mon, 09 June 2014 14:08
"Lalit Kumar B" You can not rush this link to know what did you give to what!!
I want a simple example of the pipe line in the view(plsql oracle)...


Ok, wasn't that T.Kyte's ETL example of pipeline function simple? Can you please post what have you tried so far? Unless you post a test case, how would anybody understand what you want with your precise words?
Previous Topic: Converting SQL syntax
Next Topic: CREATE TABLE
Goto Forum:
  


Current Time: Fri Apr 19 20:58:43 CDT 2024