Documentation
  • Product Introduction
  • Billing
  • Announcements and Updates
  • Getting Started
  • User Guide
  • Proprietary kernel capabilities
  • Extension Guide
  • Developer Guide
  • GanosBase Spatio-temporal Database
  • Technical Whitepaper
  • Performance White Paper
  • Performance Tuning Guide
  • Security compliance
  • API Reference
  • Download SDK
  • FAQ
  • Glossary
  • Legal Resources
Home Page PolarDB PolarDB for PostgreSQL(Compatible with Oracle) GanosBase Spatio-temporal Database Raster SQL reference Attribute query and update ST_NumBands

ST_NumBands

Updated at:
Copy as MD
Product

ST_NumBands — Returns the number of bands in a raster object.

Syntax

integer ST_NumBands(raster raster_obj);

Parameters

ParameterDescription
raster_objThe raster object.

Examples

Query the number of bands in a raster object:

select ST_NumBands(raster_obj) from raster_table;

Output:

3
Previous:ST_HeightNext:ST_Value
Is this page helpful?