문제

I'm looking to query a Sybase Advantage Database Server using DATEPART. I get an error message that states the following "Scalar function not found: datepart". Is there another function that has similar functionality? I'm looking get a date's quarter. We are currently running version 9.0.

도움이 되었습니까?

해결책

Of course I find the answer right after posting... For finding the quarter specifically you can use the function QUARTER(date).

http://devzone.advantagedatabase.com/dz/webhelp/advantage9.0/supported_statements/date_time_functions.htm

다른 팁

You can use QUARTER(date) for what you need.

Check here for more information.

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