我必须写一个条件,我必须在两个其他日期值之间检查“DATE”,如示例所示:
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
有人可以为此建议正确的语法吗?
由于
答案 0 :(得分:1)
CE_PROJECTION的过滤器表达式不支持Between。
你可以尝试
var_out= CE_PROJECTION(:table1,["col1","col2","col3","col4"], ' "col2" >= "col3" AND "col2" <= "col4" ' );
希望它有所帮助。