English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

Yes, provided the user who has authorization for the view also has authorization to run updates on the underlying table.

You can explicitly prevent that by using the WITH READ ONLY predicate:

CREATE OR REPLACE VIEW myView AS
SELECT * FROM table;
WITH READ ONLY;

2006-12-22 04:20:40 · answer #1 · answered by Anonymous · 0 0

Yes changing in view will affect the underlying tables on which view is based. The owner of the schema containing the view must have the privileges necessary to insert, update, or delete rows from all the tables or views on which the view is based. The owner must be granted these privileges directly, rather than through a role.

2006-12-22 05:15:50 · answer #2 · answered by V 5 · 0 0

Yes. But the rules for updatable views can get complicated. Views can also be created to be read only. "Instead of triggers" can be used to make complex views updatable.

2006-12-22 01:48:55 · answer #3 · answered by JK 1 · 0 0

yes view is the imaginarary table of the real table

2006-12-22 02:40:34 · answer #4 · answered by Sonu G 5 · 0 0

fedest.com, questions and answers