English 中文(简体)
• 如何将用户输入PLSQL?
原标题:How to code for getting user input in PLSQL?

I m writing the following code in plsql for a user input but I don t know why its not working. I ll be thankful for a needed help in correcting it.

declare 
   -- Local variables here
   i number(10);
   id number(4);
begin
   i := 8||dbms_random.value(10000,99999);
   i := i * 10000 + &id;
   dbms_output.put_line(i);
end;
问题回答

为了确保能够在PL/SQL开发商中进行可变的替代,在主窗的底层左侧角检查一个蓝皮和纽顿。 当你把 mo曲线压倒在纽顿时,“可变替代”的流行案文应当显示。

If the ampersand button is red, then variable substitution is disabled, and you can simply click the button to enable it.

“entergraph





相关问题
to_date function pl/sql

undefine dates declare v_dateInput VARCHAR(10); v_dates DATE; begin v_dateInput := &&dates; v_dates := to_date(v_dateInput, dd-mm-yyyy ); DBMS_OUTPUT.put_line(v_dates); end; Not ...

regist payment for each month of the year using oracle data

I have the following tables: Employees with level (rank or wtv you may call it): income_value,id, etc. INCOME that stores the rank vs. the income value (very tinny and static) REGIST_INCOME table ...

if-else, case or decode inside of a ref cursor

I have this big code where I want 3 things in my search: 1- look for all the orders (delivered and not) that match the search: 2- look for all the pendent orders that match the search; 3- look for ...

Customize PL/SQL exceptions in Oracle

Frequently I found myself doing some functions to insert/delete/update in one or more tables and I ve seen some expected exceptions been taken care of, like no_data_found, dupl_val_on_index, etc. For ...

oracle pl/sql bug: can t put_line more than 2000 characters

Has anyone else noticed this phenomenon where dbms_output.put_line is unable to print more than 2000 characters at a time? Script is: set serveroutput on size 100000; declare big_str varchar2(...

热门标签