1

我必须编写一个条件,我必须在其他两个日期值之间检查“日期”,如示例所示:

var_out= CE_PROJECTION(:table1,["col1","col2","col3","col4"],  ' " col2"  BETWEEN "col3" AND "col4" ' );

但这给我一个错误 SQL: transaction rolled back by an internal error: Syntax Error in filter expression

有人可以为此建议正确的语法吗?

谢谢

4

1 回答 1

1

CE_PROJECTION 的过滤表达式不支持Between。

你可以试试

var_out= CE_PROJECTION(:table1,["col1","col2","col3","col4"],  ' "col2" >= "col3" AND "col2" <= "col4" ' );

希望能帮助到你。

于 2014-01-16T05:34:44.420 回答