PLS-00402: alias required in SELECT list of cursor to avoid
duplicate column names

Answer Posted / chimbu

Remove the same column name in cusor query.

ex:

select a1,a2,a1 from table1;

Here their are two columns named a1.

Remove it and you wont get the error

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

ORA-26094: stream format error: input column overflow

2246


IMP-00070: Lob definitions in dump file are inconsistent with database.

1284


invalid quantity specification negative quantity are not allowed for this item please check this item definition quantity

2854


ORA-26079: file "string" is not part of table string.string

1516


IMP-00063: Warning: Skipping table "string"."string" because object type "string"."string" cannot be created or has different identifier

2295






Hi guys, I have four tables those are emp,dept,eliminate and uneliminate. i wrote small cursor..when i run, it display one error (ORA-01403 nodata found)... The query is: Declare cursor c1 is select e.ename emp_name from emp e,dept d where e.deptno=d.deptno group by deptno; r1 c1%rowtype; test_emp varchar2(200); begin for r1 in c1 loop begin select eliminate_emp into test_emp from eliminate t,uneliminate ut where t.number=ut.number and t.deptno=e.deptno and rownum<1; end; dbms_output.put_line(r1.emp_name); end loop; end; Thanks...

2251


ORA-16516: The current state is invalid for the attempted operation.

8057


ORA-26029: index string.string partition string initially in unusable state

1704


ORA-26030: index string.string had string partitions made unusable due to:

1554


ORA-16626: failed to enable specified object

1767


ORA-07497: sdpri: cannot create trace file 'string'; errno = string.

2311


IMP-00064: Definition of LOB was truncated by export

5880


if the lengths of two wires are same and the area of cross sections is 4:7 then what will be the ratio of current passing through these wires

2228


IMP-00060: Warning: Skipping table "string"."string" because object type "string"."string" does not exist or has different identifier

2616


IMP-00096: Warning: Skipping table "string"."string" because type synonym "string"."string" cannot be created

1233