在存储过程中varchar2可以传递4000个字符(2000个汉字),而在
表结构中varchar2最多可以保存2000个字符(1000个汉字),所以
虽然可以传递4000个字符,在保存到数据库中时,会自动截取

解决方案 »

  1.   

    建议你用clob类型,it can store up to 4 gigabytes of character data.
      

  2.   

    The NVARCHAR2 datatype specifies a variable-length national character set character string. When you create a table with an NVARCHAR2 column, you supply the maximum number of characters or bytes it can hold. Oracle subsequently stores each value in the column exactly as you specify it, provided the value does not exceed the column's maximum length. The column's maximum length is determined by the national character set definition. Width specifications of character datatype NVARCHAR2 refer to the number of characters if the national character set is fixed width and refer to the number of bytes if the national character set is variable width. The maximum column size allowed is 4000 bytes. For fixed-width, multibyte character sets, the maximum length of a column allowed is the number of characters that fit into no more than 4000 bytes. The following statement creates a table with one NVARCHAR2 column of 2000 characters in length (stored as 4000 bytes, because each character takes two bytes) using JA16EUCFIXED as the national character set: CREATE TABLE tab1 (col1 NVARCHAR2(2000));