简体   繁体   中英

SQL apex oracle error message ORA-00902: invalid datatype

CREATE TABLE sessions 
(
    Ses_Start TIME NOT NULL,
    Ses_Finish TIME NOT NULL,
    A_ID NUMBER(2) NOT NULL,
    Vl_ID NUMBER(4) NOT NULL,
    Expense_per_head NUMBER(3) NOT NULL,

    CONSTRAINT pk_sessions PRIMARY KEY(A_ID, Vl_ID) 
); 

I'm trying to create the above table on oracle but I repeatedly get the following error

ORA-00902: invalid datatype

Any help would be appreciated!

Oracle does not have a TIME data type. You must use DATE or TIMESTAMP , each of which includes both time and date components.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM