All Products
Search
Document Center

ApsaraDB RDS:ST_ChunkBands

Last Updated:Mar 28, 2026

Returns the number of bands for a tile of the specified raster object.

Syntax

integer ST_ChunkBands(raster raster_obj)

Parameters

ParameterDescription
raster_objThe name of the raster object.

Examples

Query the number of bands for each row in a raster table:

SELECT ST_ChunkBands(rast)
FROM raster_table;

Output:

 st_chunkbands
----------
      3