0

postgres用のフィルターがあります

AND to_char(eat.datecreated, 'HH12:MI:SS AM') BETWEEN
  to_char('06:00:00', 'HH12:MI:SS AM') AND to_char('06:00:00', 'HH12:MI:SS AM')  

そして結果:

ERROR:  function to_char(unknown, unknown) is not unique
LINE 25: ...to_char(eat.datecreated, 'HH12:MI:SS AM') BETWEEN to_char('0...
                                                          ^
HINT:  Could not choose a best candidate function. You might need to add explicit type casts.

********** Error **********

ERROR: function to_char(unknown, unknown) is not unique
SQL state: 42725
Hint: Could not choose a best candidate function. You might need to add explicit type casts.
Character: 1455

私を助けてください。私はこのクエリで立ち往生しています。

4

1 に答える 1

1
and eat.datecreated::time between '06:00:00'::time and '18:00:00'::time
于 2013-02-11T08:56:09.917 に答える