I wanted to delete some records which i added recently, from this table mytemp, please tell me what is wrong with this query,
data in selected column had been populated using cursor
DELETE FROM (SELECT ROWNUM RM, S from mytemp) where rm > 20;
error is:
ORA-01732: data manipulation operation not legal on this view
Edited for accuracy…
Here’s the description of the error you are getting:
http://ora-01732.ora-code.com/
So it looks like an updateable view can be substituted for a table, as long as it doesn’t join more than one table or use virtual columns. In your case, the problem is the virtual ROWNUM column.