欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

[SQL]Boolean Field in Oracle

程序员文章站 2022-07-04 16:56:53
...

参考:https://*.com/questions/30062/boolean-field-in-oracle

 

  1. Use an integer and just don't bother assigning anything other than 0 or 1 to it.

  2. Use a char field with 'Y' or 'N' as the only two values.

  3. Use an enum with the CHECK constraint.