getSchemaComment

首发版本:3.00.6

语法

getSchemaComment(catalog, schema)

详情

获取指定 catalog 下 schema 的描述信息。

参数

catalog 字符串标量,表示 catalog 名称。指定的 catalog 必须存在。

schema 字符串标量,表示 schema 名称。指定的 schema 必须存在于 catalog 中。

返回值

STRING 类型标量。

例子

catalogName = "securitiesMarketCatalog"
schemaName = "equityMarket"

if (existsCatalog(catalog=catalogName)) {
    dropCatalog(catalog=catalogName)
}

createCatalog(catalog=catalogName)
go
create database securitiesMarketCatalog.equityMarket partitioned by VALUE(1..3)
setSchemaComment(catalog=catalogName, schema=schemaName, comment="沪深股票行情库")

getSchemaComment(catalog=catalogName, schema=schemaName)
// output: 沪深股票行情库

相关函数:setSchemaComment, getSchemaByCatalog