Answer Posted / devendar
A view can be created even if the defining query of the
view cannot be executed, as long as the CREATE VIEW command
has no syntax errors. We call such a view a view with
errors. For example, if a view refers to a non-existent
table or an invalid column of an existing table, or if the
owner of the view does not have the required privileges,
then the view can still be created and entered into the
data dictionary.
You can only create a view with errors by using the FORCE
option of the CREATE VIEW command:
CREATE FORCE VIEW AS ...;
When a view is created with errors, Oracle returns a
message and leaves the status of the view as INVALID. If
conditions later change so that the query of an invalid
view can be executed, then the view can be recompiled and
become valid. Oracle dynamically compiles the invalid view
if you attempt to use it.
| Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
What is difference between sql and mysql?
How subquery works in sql?
Explain constraints in sql?
How do you create an update query?
What are analytical functions in sql?
How do I tune a sql query?
What is the difference between mdf and ndf files?
Define the select into statement.
Explain polymorphism in pl/sql.
what are date and time intervals? : Sql dba
what are the advantages of sql ? : Sql dba
Can we perform dml in function?
Is sql open source?
what is the command used to fetch first 5 characters of the string? : Sql dba
What is raw datatype in sql?