gimme_this_gimme_that@yahoo.com wrote:[color=blue]
> Good idea ...
>
> insert into foo (foo_id,some_clob) values (100,clob())
>
> Returns :
>
> No authorized routine name "CLOB" of type "FUNCTION" having compatible
> argu
>
> Having reviewed DB2 Documentation nothing came up on CLOB() or CLOB
> FUNCTION.[/color]
You obviously did not read the documentation. Since you seem to have
trouble, here's the reference for the CLOB() function:
[color=blue][color=green]
>>-CLOB--(--character-string-expression--+------------+--)-----><[/color][/color]
'-,--integer-'
The schema is SYSIBM.
The CLOB function returns a CLOB representation of a character string
type. In a Unicode database, if a supplied argument is a graphic string,
it is first converted to a character string before the function is executed.
character-string-expression
An expression that returns a value that is a character string.
integer
An integer value specifying the length attribute of the resulting
CLOB data type. The value must be between 0 and 2 147 483 647. If
integer is not specified, the length of the result is the same as the
length of the first argument.
The result of the function is a CLOB. If the argument can be null, the
result can be null; if the argument is null, the result is the null value.
This topic can be found in: SQL Reference, Volume 1.