一条数据的真假你用一个仅有0和1两个值的字段不就可以判断了。
老兄说这个问题我才注意到,呵呵,我用oracle 开发都一年多了,也许是因为布尔值字段在数据库里根本就没有实际用处吧

解决方案 »

  1.   

    PL/SQL中有布尔类型变量,但是列的数据类型中没有布尔类型PL/SQL作为编程语言,使用布尔类型是很有必要的,但是数据存储中应该没有什么必要.
      

  2.   

    使用number(1,0),0=false,1=true;
    char(1)也可以的,需要前台的处理呀
      

  3.   

    嗨,我插个嘴,虽然它提供了BOOLEAN变量,但没办法在JDBC中存取。
    OracleTypes.???中没有BOOL型,还是别用了。
      

  4.   

    ROWID Data Type
    • Unique identifier for a row
    • Used to locate a rowRAW Data Type :
    This data type enables the storage of small binary data. The Oracle
    server does not perform character set conversion when RAW data is transmitted across machines in a network or if RAW data is moved from one database to another using Oracle utilities. The number of bytes needed to store the actual column value vary in size for each row, up to 2,000 bytes.Oracle provides six data types for storing LOBs:
    • CLOB and LONG for large fixed-width character data
    • NCLOB for large fixed-width national character set data
    • BLOB and LONG RAW for storing unstructured data
    • BFILE for storing unstructured data in operating system filesComparing LONG and LOB Data Types:
    LONG, LONG RAW
    1。Single column per table
    2。Up to 2 gigabytes
    3。SELECT returns data
    4。Data stored in-line
    5。No object type support
    6。Sequential access to chunksLOB
    1。Multiple columns per table
    2。Up to 4 gigabytes
    3。SELECT returns locator
    4。Data stored in-line or out-of-line
    5。Supports object types
    6。Random access to chunks