Oracle's lack of a Bit datatype for table columns

后端 未结 9 980
醉酒成梦
醉酒成梦 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:13

    https://docs.oracle.com/cd/E17952_01/refman-5.5-en/char.html

    As DCookie said, char(1) is more efficient. Because VARCHAR2(VARCHAR) empty contains 1 byte, but when we store 1 character then empty 1 byte size + with character 1 byte size --> 2 byte need to store 1 character in varchar

提交回复
热议问题