Link to home
Start Free TrialLog in
Avatar of donvike1
donvike1Flag for United States of America

asked on

How do I create a datetime within my table as a datatype?

I'm creating a table with a datetime datatyp.  I get this error: ORA-00902:invalid datatype.

create table test_reporting.schedule
(report_date datetime,
report_desc varchar2(50));

I keep getting the error above.  what am I doing wrong?
ASKER CERTIFIED SOLUTION
Avatar of Akenathon
Akenathon
Flag of Uruguay image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can use Date data type and while inserting please use the below statement

insert into x
values(99, to_date('1998/05/31:12:00:00AM', 'yyyy/mm/dd:hh:mi:ssam'));