Feb 7, 2001 #1 hilbrink Programmer Dec 8, 2000 38 NL Does anybody have a clue what is wrong with the following SQL statement? SELECT cast('02-17-2001' AS date) ...rest of statement... The error message i get is "Key violation. [oracle][odbc][ora]ORA-00905: missing keyword". Thanx!
Does anybody have a clue what is wrong with the following SQL statement? SELECT cast('02-17-2001' AS date) ...rest of statement... The error message i get is "Key violation. [oracle][odbc][ora]ORA-00905: missing keyword". Thanx!
Feb 7, 2001 #2 stevecal Technical User May 10, 2000 78 DK Try this for size. SELECT to_date('02-17-2001','dd-mm-yyyy') ...rest of statement. If it isn't that we'll need the rest of the statement to sort you out... Upvote 0 Downvote
Try this for size. SELECT to_date('02-17-2001','dd-mm-yyyy') ...rest of statement. If it isn't that we'll need the rest of the statement to sort you out...
Feb 7, 2001 #3 stevecal Technical User May 10, 2000 78 DK sorry, you're in US date format that should therefore be SELECT to_date('02-17-2001','mm-dd-yyyy') Upvote 0 Downvote