Click here to Skip to main content
15,896,493 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello i have 1 question how i insert in into full view using C#
C#
"INSERT INTO SUB_CATEGORY_V(ID, CATEGORY_NAME , SUBCATEGORY_NAME, NOTE) " +
               "Values(SUB_CATEGORY_SEQ.nextval, '" + comboBox1 + "', '" + textBox1.Text + "', '" + richTextBox1.Text + "')";
this code is giving me error cannot modify more then one base table throught the join view
Posted
Comments
Sinisa Hajnal 28-Apr-15 2:34am    
As the error implies, you can't. You have to call inserts for views tables. Remember to put it into a transaction.

1 solution

I would advise against calling insert on any view. It is bad practice. Either find an Oracle API that does what you are trying to do, or read oracle documentation on the table in which to insert the data you are trying to insert. Seems like the view you're looking at as with most views, is a join of one or more tables. Its my bet that if its some Oracle ERP function that there is an API for it.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900