Yes ,we can insert update and delete from view .
For Example -
First we create a employee table like :
CREATE TABLE Employee(
Emp_ID INT,
Emp_NAME VARCHAR(50),
Emp_Age Numeric(18,0)
)
Now we create a view for insert data but we can not pass directly insert command inside view because view does not allow Insert keyword .so we can use this proceure :
CREATE VIEW [dbo].[V_Employee]
AS
SELECT Emp_ID, Emp_NAME, Emp_Age
FROM Employee
Now finally we can pass the value :
INSERT INTO V_Employee SELECT 1,'NAVYA',19
Yes ,we can insert update and delete from view .
For Example -
First we create a employee table like :
CREATE TABLE Employee(
Emp_ID INT,
Emp_NAME VARCHAR(50),
Emp_Age Numeric(18,0)
)
Now we create a view for insert data but we can not pass directly insert command inside view because view does not allow Insert keyword .so we can use this proceure :
CREATE VIEW [dbo].[V_Employee]
AS
SELECT Emp_ID, Emp_NAME, Emp_Age
FROM Employee
Now finally we can pass the value :
INSERT INTO V_Employee SELECT 1,'NAVYA',19