Home  /  Application Development: Core Topics  /  Class Definition Reference  /  Class Definitions  /  Query Definitions

Class Definition Reference
Query Definitions
[Back]  [Next] 
InterSystems: The power behind what matters   

Describes the structure of a query definition.
A class query is a named query that is part of a class structure and that can be accessed via dynamic SQL.
You can define class queries within any class; there is no requirement to contain them within persistent classes.
A query definition has the following structure:
/// description 
Query name(formal_spec) As classname [ keyword_list ]  
{ implementation }
See Also