Using a row constructor
INSERT INTO videos2 (id, name, description)
VALUES(
1011,
'The Sting',
Row ('/local0/excal/desc1.txt', 'client')::IfxMRData
);
The preceding example shows how to insert the contents of the operating system file /local0/excal/desc1.txt into an IfxMRData column. The looks for the file on the client machine. The unnamed Row() constructor has to be explicitly cast to the IfxMRData data type.
If the size of the file /local0/excal/desc1.txt exceeds 2 KB, the data is stored as a CLOB object; otherwise, the data is stored as an LVARCHAR object.
The contents of the operating system file are copied into either an LVARCHAR or a CLOB object; the source file /local0/excal/desc1.txt is not referenced again by the database server.
INSERT INTO videos2 (id, name, description)
VALUES(
1012,
'The Sting',
Row ('/local0/excal/desc2.txt', 'server')::IfxMRData
);