December 2010
Intermediate to advanced
451 pages
11h 16m
English
You want to create a PL/SQL application that accepts user input from the keyboard. To test the input, you want to have Oracle SQL Developer prompt you for input.
Use an ampersand in front of a text string just like in SQL*Plus. Assign the resulting user variable to a PL/SQL variable, or use the value inline.
Just as SQL*Plus treats the ampersand as a token to denote user input, Oracle SQL Developer does the same. When an ampersand is encountered, Oracle SQL Developer will display a pop-up box to prompt the user for the input. For example, type or copy and paste the following code into the SQL worksheet, and then select the Run Statement toolbar button.
DECLARE ...Read now
Unlock full access