Oracle's lack of a Bit datatype for table columns

后端 未结 9 1084
醉酒成梦
醉酒成梦 2021-02-05 03:13

Oracle does not support a bit datatype or any other type for true/false scenarios. Does one use the char(1) field instead by using a specific letter to

9条回答
  •  自闭症患者
    2021-02-05 04:16

    Number(1) is no better than char(1). Especially if it will be in addition to the existing char(1). That will just add to the confusion.

    FWIW, Oracle in internal views (such as USER_TAB_COLUMNS) uses varchar2(3) (YES and NO). Not sure if they are 100% consistent here, though.

提交回复
热议问题