0

How can we convert datetime from sql server to oracle?

for instance:

set @month=Convert(nvarchar(10),(select MONTH(Getdate())))

What should the code look like in Oracle?

Thanks in advance.

1 Answer 1

1

To get the month number, use this:

Select to_char(SYSDATE,'MM') FROM DUAL
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.