Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [apptools] >  [core] >  [sql]
Private  Storage   

abstract class apptools.core.sql

Query and SQL statements

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 1


Summary

Methods
getSQL getViewOrQuerySQL


Methods

• classmethod getSQL(name As %String, removeNL=$$$NO, ByRef Description, today=1) as %String
s sql=##class(apptools.core.sql).getSQL("apptools.core.sql:TestXData",0,.desc) w !,sql,!!,desc s sql=##class(apptools.core.sql).getSQL("TestQuery",0,.desc) w !,sql,!!,desc
• classmethod getViewOrQuerySQL(viewOrQueryName As %String, Output sql As %String) as %Status

Queries

• query TestQuery()
SQL Query :
SELECT top 10 * from
apptools_core.Log
test query stored in query


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.