C# Error ORA 00907: Missing Right Parenthesis

前端 未结 1 1537
别那么骄傲
别那么骄傲 2021-01-29 17:10

My error:

ORA 00907: Missing Right Parenthesis

My code:

CREATE TABLE TBL_TD_USER
(

  USER_ID                 INTEGE         


        
相关标签:
1条回答
  • 2021-01-29 17:41

    This works:

    CREATE TABLE TBL_TD_USER    
    (    
     USER_ID       INTEGER NOT NULL ,    
     USER_NAME     VARCHAR2(20) NOT NULL,    
     PASSWORD      VARCHAR2(20) NOT NULL,    
     CREATED_BY    VARCHAR2(20) NOT NULL,    
     CREATED_DATE  DATE NOT NULL,    
     MODIFIED_BY   VARCHAR2(20) NOT NULL,    
     MODIFIED_DATE DATE NOT NULL,    
     IS_ACTIVE     VARCHAR2(1) NOT NULL,    
     DESCRIPTION   VARCHAR2(200) NOT NULL,    
     CONSTRAINT TBL_TD_USER PRIMARY KEY (USER_ID)    
    );
    
    • There's no variable type named CHARACTER in oracle, as an alternative, you to use VARCHAR2 with length value in parenthesis.
    • You can use INTEGER type without length.

    demo

    0 讨论(0)
提交回复
热议问题