Home > Back-end > View data in mysql changes affect the original table data
View data in mysql changes affect the original table data
Time:12-03
Remember is not to be modified, but just try once, single change in the table view is will affect the original table data, two tables are testing,
CodePudding user response:
Really have nothing to say, if the view is data from a table, modify data in a view, table data will update, and modify data in the table, the corresponding view will be updated, but if the view data from two tables, modify the view data error, cannot be modified, create a view directly using the create view aaa as select * from the test. Don't use other keywords,
CodePudding user response:
Why not use the update
CodePudding user response:
View is a collection of query statements, has no effect on the original data,
CodePudding user response:
Single table can DML. The table can't
CodePudding user response:
Modify the view data will modify the original table data, tested
CodePudding user response:
To tell the truth view is to avoid, you are used to modify ~