문제

I am transferring data from oracle to sql. I wrote a query to get the previous date from oracle Table but what do I need to do if I want data from 15 DEC 2013?

SELECT CLOSED,RESOLVED,ACTION FROM 
ADMIN.Data where MODIFIED_DATE >=ADMIN.PKGTIMECONVERSION.TO_TO_GMTU(sysdate-1)

I have never done this type of conversion before.

도움이 되었습니까?

해결책

Without knowing what the package does or what this really has to do with SQL Server (not 'SQL', which is a language not a product), does this do what you want?

SELECT CLOSED,RESOLVED,ACTION FROM 
ADMIN.Data where MODIFIED_DATE >=
  ADMIN.PKGTIMECONVERSION.TO_TO_GMTU(DATE '2013-12-15')

Or if you don't like the ANSI notation you can use TO_DATE('15-DEC-2013', 'DD-MON-YYYY') instead.

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