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!

Add a Date column

Kodiak_SeattleMar 12 2009 — edited Mar 12 2009
I want to add a column to the end of a existing Table that has data in it. I need the column to contain DATE information and then after inserting the column I need to make all the rows values for that new added column to be in this format:

Month-Year there is no need for an exact Date format like: 01/01/2008 TIME, just MM/YYYY

I think this has worked for me in the past, but I am not sure about the DATE parts that I want and I am not sure how to insert say MARCH/2009 into all the rows, help would be appreciated, thanks!

alter Table Y775.TABLE
add
SPEND_GROUP DATE;


COMMIT;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2009
Added on Mar 12 2009
9 comments
4,753 views