Caché Class Definition Reference
[Home] [Back] [Next]
InterSystems: The power behind what matters   

Specifies the type to use for calculations in SQL. Applies only to data type classes.
To specify the type to use for calculations in SQL, use the following syntax:
Class MyApp.MyString [ ClassType = DataType, SQLCategory = STRING ]  { //class members }
Where sqlcategory is one of the following:
This keyword specifies the type to use for this class in SQL calculations.
Every data type class must specify an SQL category.
When creating a new data type class, use the SQL category value that most closely matches the data type you are creating, or, better still, subclass an existing data type class and inherit its SQL category.
Effect on Subclasses
This keyword is inherited from the primary superclass. The subclass can override the value of the keyword.
The default SQL category is STRING.
See Also

Send us comments on this page
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA