注释 MDX 双斜杠Comment MDX double slash

表示用户提供的文本。Indicates user-provided text.

语法Syntax

  
// Comment_Text   

参数Parameters

Comment_TextComment_Text
包含注释文本的字符串。The string that contains the text of the comment.

备注Remarks

注释可以在单独的一行插入,也可以在多维表达式 (MDX) 脚本行的结尾处嵌入,还可以嵌入在 MDX 语句中。Comments can be inserted on a separate line, nested at the end of a Multidimensional Expressions (MDX) script line, or nested within an MDX statement. 服务器不对注释进行计算。The server does not evaluate the comment.

只将 // 用于单行注释。Use // for single-line comments only. 用 // 插入的注释由换行符分隔。Comments inserted with // are delimited by the newline character.

注释没有最大长度限制。There is no maximum length for comments.

示例Examples

下面的示例演示了此运算符的用法。The following example demonstrates the use of this operator.

// This member returns the gross profit margin for product types  
// and reseller types crossjoined by year.  
SELECT   
    [Date].[Calendar].[Calendar Year].Members *  
      [Reseller].[Reseller Type].Children ON 0,  
    [Product].[Category].[Category].Members ON 1  
FROM // Select from the Adventure Works cube.  
    [Adventure Works]  
WHERE  
    [Measures].[Gross Profit Margin]  

另请参阅See Also

注释 (MDX) Comment (MDX)
--(注释)(MDX) -- (Comment) (MDX)
Mdx 运算符引用 (MDX)MDX Operator Reference (MDX)