문제

I have to write a condition where I have to check a "DATE" lie beween two other date values as shown in the example:

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

But this throws me an error SQL: transaction rolled back by an internal error: Syntax Error in filter expression

Could anyone suggest the right syntax for this?

Thanks

도움이 되었습니까?

해결책

Between is not supported in the filter expression of CE_PROJECTION.

You can try

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

Hope it helps.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top