将 lld_locator 行插入表中

以下示例创建含有 lld_locator 行的表,并显示如何将大对象插入该行中。

图: 将 lld_locator 行插入表中

--Create lobs table
create table lobs (key int primary key, lo lld_locator);

-- Create an lld_locator for an existing server file
insert into lobs
        values (1, "row('ifx_file',null,'/tmp/quote1.txt')");

INSERT 语句将 lld_locator 行的实例插入 lobs 表中。第一个字段 IFX_FILE 中的协议将大对象识别为服务器文件。第二个字段 lo_pointer 用于指向智能大对象。由于该对象为服务器文件,因此此字段为 NULL。第三个字段将服务器文件识别为 quote1.txt