sql - Oracle: between dates statement gives error 'not valid month' -


i'm not sure i'm doing wrong here. i'm trying build oracle query executing php project via oci. need select records between specific date range.

in trying syntax down, wrote out test query:

select * shipped   user_seq_id = 381  ,    lot_date between to_date('05/27/2014', 'mm/dd/yyyy')       , to_date('06/03/2014','mm/dd/yyyy'); 

this syntax seems should work it's not. i'm not oracle developer i'm positive i"m misunderstanding something. when i've looked @ similar posts haven't found point i'm doing wrong.

this rather tricky error. problem occur if lot_date stored character string rather date -- , string contained invalid data.

by explicitly converting right hand side of comparison dates, comparison attempted converting field date. , there error.

the fix fix data in field. if in field called "date", should have date data type.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -