如何通过视图进行更新? [英] How can update through a View?

查看:87
本文介绍了如何通过视图进行更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们可以通过视图进行更新吗?我来知道,如果表是单个的,我们可以更新.如果是这样,为什么我们不能更新多个表.请任何人给我一个简单的示例,在该示例中,我们将通过views

Hi,
Can we update through Views? I have come to konw that we can update provided table is single. If so, why can''t we update multiple tables. Please can anyone give me simple example where we update table through views

推荐答案

this[^] might help you.


是的,您也可以更新视图.但是要做到这一点,需要满足某些条件.最基本的是:
任何修改(包括UPDATE,INSERT和DELETE语句)都只能引用一个基表中的列

有关完整的详细信息,请单击此处:
中间的可更新视图"部分 [
Yes you can update Views too. But there are certain conditions that needs to be satisfied in order to do it. Most basic being:
Any modifications, including UPDATE, INSERT, and DELETE statements, must reference columns from only one base table

For full details, look here: Updatable Views section in the middle[^]


这篇关于如何通过视图进行更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆