图象 | 音频 | 视频 |
---|---|---|
X | X | X |
包含文件
语法
从缓冲区或客户机文件更新内容, 并更新注解
>>-Replace--(--handle--,--content--,--source_format--,----------> >----target_file--,--comment--)--------------------------------><
语法
从服务器文件更新内容,并更新注解
>>-Replace--(--handle--,--source_file--,--source_format--,--stortype--,--> >---comment--)-------------------------------------------------><
包含文件
从缓冲区或客户机文件更新具有用户提供的属性的内容, 并更新注解
>>-Replace--(--handle--,--content--,--target_file--,------------> >----comment--,--attrs--,--thumbnail--)------------------------><
包含文件
从服务器文件更新具有用户提供的属性的内容, 并更新注解
>>-Replace--(--handle--,--source_file--,--stortype--,--comment--,--> >---attrs--,--thumbnail--)-------------------------------------><
语法
从缓冲区或客户机文件更新内容, 并进行格式转换以及更新注解-仅适用于图象
>>-Replace--(--handle--,--content--,--source_format--,----------> >----target_format--,--target_file--,--comment--)--------------><
语法
从服务器文件更新内容,进行格式转换, 并更新注解 - 仅适用于图象
>>-Replace--(--handle--,--source_file--,--source_format--,------> >----target_format--,--target_file--,--comment--)--------------><
语法
从缓冲区或客户机文件更新内容, 进行格式转换和其他更改,并更新注解-仅适用于图象
>>-Replace--(--handle--,--content--,--source_format--,----------> >----target_format--,--target_file--,--conversion_options--,----> >----comment--)------------------------------------------------><
语法
从服务器文件更新内容, 并进行格式转换、附加更改和更新注解 - 仅适用于图象
>>-Replace--(--handle--,--source_file--,--source_format--,------> >----target_format--,--conversion_options--,--target_file--,----> >----comment--)------------------------------------------------><
参数(数据类型)
返回值(数据类型)
要更新的图象、音频或视频的句柄(DB2IMAGE、DB2AUDIO 或 DB2VIDEO)。
例
更新 Employee 表的 Picture 列中 Anita Jones 的图象, 将图象的格式由 BMP 转换为 GIF,并更新注解:
EXEC SQL BEGIN DECLARE SECTION; long hvStorageType; EXEC SQL END DECLARE SECTION; hvStorageType = MMDB_STORAGE_TYPE_INTERNAL; EXEC SQL UPDATE EMPLOYEE SET PICTURE = REPLACE(PICTURE, '/employee/newimg/ajones.bmp', 'BMP', 'GIF', :hvStorageType, 'Anita''s new picture') WHERE NAME='Anita Jones';