docs.intersystems.com
Home  /  Application Development: Core Topics  /  Class Definition Reference  /  Query Keywords  /  SqlViewName


Class Definition Reference
SqlViewName
[Back]  [Next] 
InterSystems: The power behind what matters   
Search:  


Overrides the default name of the projected SQL view. Applies only if this query is projected as an SQL view.
Usage
To override the default name used when the query is projected as an SQL view, use the following syntax:
Query name(formal_spec) As classname [ SqlView, SqlViewName = "_Q1" ]
{
   //implementation
}
Where sqlviewname is an SQL identifier.
Details
This keyword provides an SQL alias for the view projected from this query.
Default
If you omit this keyword, the SQL view name is the query name.
See Also