视图的更新是否也会影响基表? 例如,
CREATE TABLE MyEmployees
(
EmployeeID smallint NOT NULL,
FirstName nvarchar(30) NOT NULL,
LastName nvarchar(40) NOT NULL)
我在MyEmployees表上创建了一个视图。
CREATE VIEW View_Mymployees
AS
SELECT * from MyEmployees
现在,我正在尝试更新视图,
UPDATE View_Mymployees
SET FirstName = 'Adam'
WHERE EmployeeID = 1.
更改是否也会反映在基表中?