Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Cognos 8 Framework Manager 中创建了一个传递查询项,它需要 # 字符作为查询的一部分。不幸的是,这被 Cognos 解释为宏的打开。
如何转义查询项中的 #(数字符号/锐号)字符?
There does't seem to be any "official" way in the documentation, but this seems to work.
#"#"#
#'#'# works too, unless it appears in a literal SQL string in your query, so it's safer to use #"#"#.
#'#'#
一个反斜杠\应该分隔它,我知道它分隔方括号[]。
\
[]