Impact of defining VARCHAR2 column with greater length

前端 未结 3 1603
旧时难觅i
旧时难觅i 2020-12-05 10:18

What are the effects of defining a column with VARCHAR2(1000) instead of VARCHAR2(10) in Oracle, when the values are not longer than 10 Byte?

3条回答
  •  萌比男神i
    2020-12-05 10:40

    In the database, there is no difference. VARCHAR2 are stored with variable length, the declared length is only a limitation.

    However, some client applications will reserve 1000 bytes per column instead of 10 if they see that the column is defined as VARCHAR2(1000)

提交回复
热议问题