Nome

DropGeometryColumn — Rimuove una colonna geometry da una tabella spaziale

Sinossi

text DropGeometryColumn(varchar table_name, varchar column_name);

text DropGeometryColumn(varchar schema_name, varchar table_name, varchar column_name);

text DropGeometryColumn(varchar catalog_name, varchar schema_name, varchar table_name, varchar column_name);

Descrizione

Rimuove una colonna geometry da una tabella spaziale. Il campo schema_name deve corrispondere al campo f_table_schema in geometry_columns.

[Avvertimento]

DropGeometryColumn is retained for backward compatibility and is not recommended for new applications. Use the standard ALTER TABLE ... DROP COLUMN command instead. The geometry_columns view updates automatically from the system catalogs.

Questo metodo implementa le OGC Simple Features Implementation Specification for SQL 1.1.

Questa funzione supporta il 3d e non distrugge gli z-index.

Questo metodo supporta le Curve e le Circular String.

Changed: 2.0.0. Retained for backward compatibility after geometry_columns became a view of the system catalogs.

Esempi

Use standard SQL to drop the geometry column. The geometry_columns view updates automatically.

Code
ALTER TABLE my_schema.my_spatial_table DROP COLUMN geom;

The legacy compatibility function performs the equivalent operation.

Code
SELECT DropGeometryColumn ('my_schema', 'my_spatial_table', 'geom');
Output
my_schema.my_spatial_table.geom effectively removed.