今天看别人写的存储过程,发现raw类型的变量。
向大家请教以下几个相关问题:
1:raw 类型的数据有什么特点,是如何存放数据的?
2:在什么情况下使用raw类型数据?
3:在oracle中有什么数据类型和raw是差不多的,或则说是可以替代它的??

解决方案 »

  1.   

    You use the RAW datatype to store binary data or byte strings. For example, a RAW
    variable might store a sequence of graphics characters or a digitized picture. Raw data
    is like VARCHAR2 data, except that PL/SQL does not interpret raw data. Likewise,
    Oracle Net does no character set conversions when you transmit raw data from one
    system to another.
    The RAW datatype takes a required parameter that lets you specify a maximum size up
    to 32767 bytes. The syntax follows:
    RAW(maximum_size)
    You cannot use a symbolic constant or variable to specify the maximum size; you must
    use an integer literal in the range 1 .. 32767.
    You cannot insert RAW values longer than 2000 bytes into a RAW column. You can insert
    any RAW value into a LONG RAW database column because the maximum width of a
    LONG RAW column is 2147483648 bytes or two gigabytes. However, you cannot retrieve
    a value longer than 32767 bytes from a LONG RAW column into a RAW variable. Note
    that the LONG RAW datatype is supported only for backward compatibility;
      

  2.   

    good
    raw using like regedit file