|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hey guys,
new to SQL, trying to run this simple query SELECT * from STAFF WHERE REVIEW between 31 JANUARY 06 and 31 AUG 06 its coming up wit an error such as: ORA-00905: missing keyword anyone know how to fix this please? |
|
#2
|
||||
|
||||
|
You aren't using mysql, contact a moderator and have them move your question to the appropriate forum. There are different forums for different databases.
__________________
MySQL - reformat varchar dates to proper date type || MySQL - room vacancies || output results with column names with mysql only Latest row per group || Deleting duplicates || Gaps in auto increment column My site: sql help articles |
|
#3
|
|||
|
|||
|
I suggest that you read about the to_date() function. For example here:
http://www.ss64.com/orasyntax/to_date.html That will give you an idea about how to enter date formats in oracle.
__________________
/Stefan |
|
#4
|
|||
|
|||
|
Code:
SELECT * from STAFF WHERE REVIEW between '31-JAN-2006' and '31-AUG-2006'; The default date format in Oracle usually looks like the above. That will always work inside quotes. your date default is in V$PARAMETER. it has an nls_date_format value that shows what the default date format is. |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > ORA-00905: missing keyword |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|