Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

need help in sql query

711216Dec 3 2009 — edited Dec 4 2009
Hello all,

Iam having below SQL query in file "main .sql ". For user input line_number it has to display the results.
User will be entering multiple line numbers and for each new line number he shoulnd not execute again "main.sql". this task has to be repititive untill he exits. This has to be done only in SQL query.

Please help me how can we achieve this

ACCEPT line_number -
PROMPT "Enter line number: "

SELECT ROWNUM,line_detail_id, quantity,
STATUS,EXPECTED_RECEIPT_DATE
FROM sgp_user_supply
WHERE line_detail_id =&line_number;

And also i have another doubt can we call "main .sql " query and display at runtime from a pl/sql block.

Regards,
Kiran
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2010
Added on Dec 3 2009
3 comments
523 views