how to get input from user at runtime
i want to take runtime input from user in oracle 10g pl/sql blocks(i.e. interactive communication with user), is it possible? declare x number; begin x=&x; end this code gives error as & can't be used in oracle 10g. To read the user input and store it in a variable, for later use, you can use sqlplus command ACCEPT . Accept <your variable> <variable type if needed [number|char|date]> prompt 'message' example accept x number prompt 'Please enter something: ' And then you can use the x variable in a PL/SQL block as follows: declare a number; begin a := &x; end; / Working with a sting example: