名稱

DropGeometryTable — 刪除資料表及其在 geometry_columns 中的所有參考。

概要

boolean DropGeometryTable(varchar table_name);

boolean DropGeometryTable(varchar schema_name, varchar table_name);

boolean DropGeometryTable(varchar catalog_name, varchar schema_name, varchar table_name);

描述

刪除資料表及其在 geometry_columns 中的所有參考。注意:如果在 schema-aware pgsql 安裝中未提供 schema,則使用 current_schema()。

[Note]

變更:2.0.0 此函式是為了向後相容性而提供。現在 geometry_columns 是一個針對系統目錄的檢視表,你可以像使用 DROP TABLE 刪除其他資料表一樣,刪除具有幾何欄位的資料表。

範例

SELECT DropGeometryTable ('my_schema','my_spatial_table');
----RESULT output ---
my_schema.my_spatial_table dropped.

-- The above is now equivalent to --
DROP TABLE my_schema.my_spatial_table;