IBM Books

Image, Audio, and Video Extenders Administration and Programming

UpdateTime


Image Audio Video
X X X

Returns a timestamp that indicates when an image, audio, or video in a database table was last updated.

Include file

image
dmbimage.h

audio
dmbaudio.h

video
dmbvideo.h

Syntax

>>-UpdateTime--(--handle--)------------------------------------><
 

Parameters (data type)

handle (DB2IMAGE, DB2AUDIO, or DB2VIDEO)
Column name or host variable that contains the handle of the image, audio, or video.

Return values (data type)

Timestamp when image, audio, or video was last updated (TIMESTAMP)

Examples

Get the names of files for images in the picture column of the employee table that were updated in the last 2 days:

EXEC SQL BEGIN DECLARE SECTION;
 char hvImg_fname[251];
EXEC SQL END DECLARE SECTION;
 
EXEC SQL SELECT FILENAME(PICTURE)
     INTO :hvImg_fname
     FROM EMPLOYEE
     WHERE(CURRENT TIMESTAMP -
       UPDATETIME(PICTURE))< 2;


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]