ST_SetName

更新时间: 2026-03-28 18:34:52

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)
上一篇: ST_Name 下一篇: ST_MetaData
阿里云首页 云原生数据库 PolarDB 相关技术圈