Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Applies to:
Databricks SQL
Databricks Runtime 17.1 and above
Important
This feature is in Public Preview.
Note
This feature is not available on Databricks SQL Classic warehouses. To learn more about Databricks SQL warehouses, see SQL warehouse types.
Returns the SRID of the input GEOGRAPHY or GEOMETRY value.
Syntax
st_srid ( geoExpr )
Arguments
geoExpr: AGEOGRAPHYorGEOMETRYvalue.
Returns
A value of type INTEGER, representing the SRID of the input GEOGRAPHY or GEOMETRY value.
The function returns NULL if the input is NULL.
Examples
-- Returns SRID from EWKB representation.
> SELECT st_srid(st_geomfromewkb(X'0101000020110F000000000000000024400000000000004140'));
3857
-- Returns default SRID for geography.
> SELECT st_srid(st_geogfromtext('POINT(10 34)'));
4326