First things first: In DB, if the column type is DATE, it doesn't store the date values in a particular 'format' (dd-MMM-yyyy or whatever). What it stores is some kind of a number or expression which helps it to uniquely indicate a date value. So, your statement
I want to insert into the table as dd-mm-yyyy format..
is not valid. If the column type is DATE (which I assume as you were inserting a value using 'to_date') then it will hold date-value and not
string (formatted).
What I can realize from your post is that while getting the value back, you may want to display (or parse) it as dd-MMM-yyyy. However, for this you have to SELECT the value using 'to_char'. The value in DB is of type DATE and can be retrieved in
ANY format. So, something like
should work.