Copy a client file to a large object
The following example uses the lobs table created in Using lld_create.
In the example, the lld_fromclient function
in the first SELECT statement, copies the client file, quote2.txt,
to an lld_locator row in the lobs table.
The lld_fromclient function returns a pointer to the lld_locator row that identifies the data copied from the large object. The first SELECT statement returns this lld_locator row.
The next SELECT statement selects the lo_pointer field
of the lld_locator row, lo.lo_pointer
,
and casts it to CLOB type data. The result is the data itself.