on 2013 Sep 13 2:57 AM
how to update emp_name using implicit cursor in oracle.
for this purpose i wrote a program in pl/sql
DECLARE var_names VARCHAR2(30); BEGIN UPDATE emp SET emp_name= emp_name +'garu'; IF SQL%NOTFOUND THEN dbms_output.put_line('None of the salaries where updated'); ELSIF SQL%FOUND THEN var_names:=sql%rowcount; dbms_output.put_line('Salaries for ' || var_names|| 'employees are updated'); END IF; END;
but showing error,that is
Error report: ORA-01722: invalid number ORA-06512: at line 4 01722. 00000 - "invalid number" *Cause: *Action:
can any one clarify my doubt..
This forum is focused on SAP Sybase SQL Anywhere. Please find an appropriated forum for Oracle questions and post your question there.
Have a look at Oracle Database
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
11 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.