You have misunderstanding about the term inheritance as it applies in SQL.
You have a table structure with column
CREATE TABLE foo ( a int, b int, c int );
If you want a view that inherits from that table, you need to select from it explicitly. "Inherits" means something very specific in SQL parlance and it's not applicable to views. "Inheritance" in OOP refers to a method of eliminating redundancy by using data from a parent as a template. In SQL, "inheritance" is an implementation detail that should typically be avoided -- though sometimes useful in things like sharding.
So for instance, you can add a column d
to table foo
in a view by appending it on the query.
CREATE VIEW bar
AS
SELECT foo.*, 'myval' AS d
FROM foo;
You can read more about SQL-Inheritance in my answer ot Using table inheritance instead of mapping tables.