Java parsea string to oracle sql date

How can I parse a date String to a Date oracle sql

I receipt a date into a string like this "06-AUG-93" and when I try to insert I can’t because in database it’s a DATE type.

So I had to split in each "-" before, and convert "AUG" to "08" and then send to insert like 06-08-93.

but I have a switch case with 12 monts

So I want to know if there’s easier a way

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.