User input with PL/SQL? Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: User input with PL/SQL?

  1. #1
    Join Date
    Jan 2001


    I am writing a PL/SQL procedure and I want to ask the user a question. I then want the procedure to pause and wait for a response of Y or N from the user. Then load that into a variable. Can someone give me an idea of where to look for something like this? Thanks.

  2. #2
    Join Date
    Dec 2000
    You cannot do that with PL/SQL. Instead split your procedures in 2 different blocks. Write a SQL script which executes the first PL/SQL block and then ACCEPT your input from user ( using SQL ) then execute the second PL/SQL block based on user input.

    Hope this helps.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width