I want to know Some "Views Concept ".Now only,i am learning "View Concept".
1. what is the main use of "VIEWS" ? (using in mysql)
2.I try some queries using "VIEWS".I am creating a new View table with a Select query using more than one table. As per rule,it doesn't get updated in "View Table" as well as from the "base table"(using table in select query)
Expand|Select|Wrap|Line Numbers
- For Example :create view customers_view(cid,name,salary) as select a.cid,a.name,b.salary from customers a,orders b where a.cid=b.cid;
now :View Table is Created.
Then : I am trying to update the values in the View Table ....its get updating.The values should not get update if we are using more than one table in the select query..Did i following correctly.
Its get updating in the "Base Table also".Please tell me out.Thanks in advance