EJBクエリでdateaddを達成しようとしています。私はこのようなことを試しましたが、うまくいきません:
select t.date + 1 from Table t
そのコードを実行しようとすると、次の例外が発生します。
org.hibernate.exception.SQLGrammarException: ERROR: operator does not exist: timestamp without time zone + integer Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 93
また、日付と間隔に1をキャストしようとしましたが、クエリ結果はnullになります。私はただ疑問に思います、EJBクエリで特定の日付に日を追加することは本当に可能ですか?