April 6, 2011 at 11:16 am
select a,b,c,d,e, ADDED_DATE, CLIENT_TYPE
from table1(orcaletable)
where CLIENT_TYPE <> 4 and ADDED_DATE> ALL('4/4/2011 8:20:51 PM','DD/MM/YYYY HH:MI:SS PM')
error messaage :
ORA-01861: literal does not match format string
ORA-01861: literal does not match format string (OraOLEDB)
can anyone help me in this
April 6, 2011 at 12:04 pm
souldn't the data be ('04/04/2011...
or the pattern be M/D/YYYY...
Lowell
April 6, 2011 at 12:54 pm
Table1 (column ADDEDDATE) is in the form
10/1/2005 12:00:00 AM
.
.
8/18/2007 12:00:00 AM
.
.
i guess, we can't do when the column is in the above form
April 10, 2011 at 1:49 pm
quillis131 (4/6/2011)
Table1 (column ADDEDDATE) is in the form10/1/2005 12:00:00 AM
8/18/2007 12:00:00 AM
What's the datatype of ADDED_DATE column? is it a DATE or a VARCHAR2 column?
If ADDED_DATE is a DATE column please try..
TO_DATE('04/04/2011 8:20:51 PM','DD/MM/YYYY HH:MI:SS AM')
_____________________________________
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at Amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply