How can I define that the value of a column should always be in UPPER case
Hi,
I want to make sure that the value in a column is always in UPPER case.
Can we give this condition while creating or altering a table.
A trigger can do it easily, but I was wondering if we could define a column to have values with upper case all the time, independent of what values are inserted. I mean if we give a lower case value in the insert statement, it should be converted automatically to upper case & stored.
I want something like
Alter table MY_TABLE Modify ( col1_upper varchar2(25) default UPPER(Col1_upper));
But the above statement does not work as it references the col of the table.
Thanks
Sunil