1

I am trying to do something like this

select myDate+addDays from myTable

myDate is a datetime column in the table addDays is an integer column in the table

5

1 Answer 1

2
select myDate + (interval '1' day * addDays) from myTable

Above query will work on PostgreSQL as well as Oracle.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.