InterSystems 常见问题系列
使用 ErrorList 查询 SYS.ApplicationError 类.
- 注 1: 在 %SYS 命名空间中运行.
- 注 2: 这是个非存储的utility, 所以我们用 %ResultSet 类而不用 %SQL.Statement.
执行命令的例子如下.
USER>set$namespace以下显示如何获得在浏览行时获取SELECT的列值The following shows how to get column values of a SELECT while navigating through rows.
使用Next()方法来移动到一行(如果行存在的话返回1)
获取一列的话使用 Get("column name"). 具体列名,请参考类文档里面的ErrorList 查询描述。
"USER"For terminal viewing, you can also use the ^%ER routine.
Execute the following while in the namespace you want to reference (the example is executed in the USER namespace).

.png)
.png)
.png)

.png)

