![]() |
ORACLE: DatePart??
Hey, everyone.
Been scouring Google, looking for an ORACLE equivalent to SQL Server "DatePart". I found one thing, and it's not working: Code:
SELECT ...Does anyone know the proper way to compare the year portion of a date to a value like "2012"? Thank you, |
DBMS are far from my strong point especially oracle. But I'm not familiar with the DATEPART function. The error indicates that oracle isn't either (maybe a pl/sql specific?). I always use EXTRACT when I need to pull something out of Oracle by year:
Code:
EXTRACT(YEAR from tbl.DateField) = 2012 |
Is that true for Backups and replicating the database are bigger and slower..
Plz anyone suggest me.. |
crewson, your question has nothing to do with this thread please start a separate thread.
|
| All times are GMT +1. The time now is 01:00 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.