Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

date data type showing only year

160159Aug 13 2002
can i do something like this???

alter table T
modify (year date format'yyyy');

OR

create table T (
year date format('yyyy'));

I want to store only year in a year column.

I know that i can use "column format" or to_date, or to_char but these only for selecting or inserting.
I want the year to be stored in a column without using these functions.

Thanks in advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 11 2002
Added on Aug 13 2002
8 comments
2,031 views