Mentor SAP

Database Views - Overview

The following views are supported by SAP HANA:

 

Database view: Advantages

You can use the database view to change the conceptual schema without causing side effects on applications.

The application programmers do not have to know the full database structure but only the excerpt that is relevant to them.

Complex queries referencing views are easier to formulate, provided that the view provides an appropriate pre-selection of data.

You can use the view to realize value-dependent access privileges or to make sure certain columns are never visible for certain users.

 

 

Managing Database views

You can create database views using the CREATE VIEW statement as follows

CREATE VIEW <Name of the view> [ (<list of column names>)] AS 
SELECT ……

 

You can also use the following in the SELECT part of the CREATE VIEW statement:

 

 

 

Modifying Data with a View

 

 

 

You cannot modify data through a view if the view definition contains any of the following: