所以我有一个FileNet搜索查询
SELECT * from MyPurchase_Docs
WHERE Purchase_Amount > 100.50
非常简单的查询,但是我的问题是Purchase_Amount被定义为字符串 所以我在哪里得到结果 Purchase_Amount为2.5、30.25等(因为它正在比较字符串)
我尝试了CAST功能,但不适用于FileNet。 我无权更改Filenet中的字段类型,因此我被困在这里。 请让我知道是否有解决此问题的方法。
答案 0 :(得分:1)
这是不可能的,不支持数据类型转换。
<predicate> ::= <comparison_predicate>
| <null_test>
| <in_test>
| <existence_test>
| <isclass_test>
| <isOfclass_test>
| <content_test>
| <satisfies_test>
| <intersects_test>
<comparison_predicate> ::= <scalar_exp> <comparison_op> <scalar_exp>
<scalar_exp> ::= <literal>
| <property_exp>
| ( '(' <scalar_exp> ')' )
| ( <scalar_exp> <arith_op> <scalar_exp> )
| <property_spec> [<arith_op> <timespan_exp>]
| <now> [<arith_op> <timespan_exp>]