插入视图时,也会插入其基表

编程入门 行业动态 更新时间:2024-10-21 22:54:31
本文介绍了插入视图时,也会插入其基表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我从基表中查看了一个视图。当在视图中插入一行时,也会插入基表。如何防止这种情况。?

I have made a view out of a base table.When insert a row in the view,base table is also get inserted.How can I prevent this.?

推荐答案

不要使用视图来插入或修改数据EVER。使用表而不是视图。如果您需要管理父/子结构,请使用存储过程和事务(如果数据需要它)! Do not use views to insert or modify data EVER. Work with the tables not the views. If you need to manage parent/child structures use a stored procedure and a transaction if the data requires it!

更多推荐

插入视图时,也会插入其基表

本文发布于:2023-10-27 23:19:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1534829.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:也会   视图

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!