ST_SetName

更新时间:
复制 MD 格式

Sets the name of a raster object.

Syntax

raster ST_SetName(raster rast, cstring name);

Return type: raster — the raster object with the updated name.

Parameters

ParameterTypeDescription
rastrasterThe raster object to update.
namecstringThe name to assign to the raster object.

Examples

Set the name of the raster with id = 2 to image2:

UPDATE rat SET rast = ST_SetName(rast, 'image2') WHERE id = 2;

Output:

(1 row)