You are viewing documentation about an older version (1.29.0). View latest version

snowflake.snowpark.catalog.Catalog.dropTable

Catalog.dropTable(table: Union[str, Table], *, database: Optional[Union[str, DatabaseModel]] = None, schema: Optional[Union[str, ModelSchemaModel]] = None) None[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.29.0/snowpark-python/src/snowflake/snowpark/catalog.py#L632-L651)

Drop the given table in the given database and schema. If database or schema are not provided, drop the table in the current database and schema.

Parameters:
  • table – table name or Table object.

  • database – database name or Database object. Defaults to None.

  • schema – schema name or Schema object. Defaults to None.

语言: 中文