在pl/sql中可以用
不要在表中用,用number代替bool不好吗?

解决方案 »

  1.   

    数据库字段没有boolean类型的,使用别的代替吧!
    比如整型,字符型。
      

  2.   

    procedure里面可以用,返回值可以设为varchar2(1),实现boolean
      

  3.   

    BOOLEAN
    You use the BOOLEAN datatype to store the logical values TRUE, FALSE, and NULL (which stands for a missing, unknown, or inapplicable value). Only logic operations are allowed on BOOLEAN variables. The BOOLEAN datatype takes no parameters. Only the values TRUE, FALSE, and NULL can be assigned to a BOOLEAN variable. You cannot insert the values TRUE and FALSE into a database column. Also, you cannot select or fetch column values into a BOOLEAN variable. 已测试过,create type .. as object(..)、记录类型,都不行.