SQL: Missing right parenthesis

后端 未结 1 1368
北荒
北荒 2021-01-24 21:43

I have been having a lot of problems in creating a new Oracle table. It has gone from one error to another.

This may be its last issue.

I am trying out why thi

相关标签:
1条回答
  • 2021-01-24 21:56

    Oracle INTEGER type does not allow either precision nor scale.
    Actually, Oracle's INTEGER is basically the same as NUMBER(38, 0).

    In your case you can change the definition of overdue_cost and days_checked_out in two ways:

    1. Define them as INTEGERS, but leave the presision/scale out:

      overdue_cost     INTEGER,    
      days_checked_out INTEGER
      
    2. Define them as NUMBER(10, 0) - preferred, since one of the fields has non-zero scale.

      overdue_cost     NUMBER(10, 0),    
      days_checked_out NUMBER(10, 2)
      
    0 讨论(0)
提交回复
热议问题