Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回此连接的版本字符串。
String DBConnectionContext.getVersion()
脚本版本。
有关详细信息,请参见ml_add_property 系统过程。
以下示例显示如何获取脚本版本并基于它作决定。本示例假设您已有名为 [_cc] 的 [DBConnectionContext] 实例。
// A method that uses the script version public void handleEvent() { // ... String version = _cc.getVersion(); if (version.equals("My Version 1")) { // ... } else if (version.equals("My Version 2")) { // ... } } // ...