MSSQL.drop_table¶
- MSSQL.drop_table(table_name, schema_name=None, confirmation_required=True, verbose=False, indent=None, raise_error=False)[source]¶
Delete/drop a table.
- Parameters:
table_name (str) – Name of the table to be deleted.
schema_name (str | None) – Name of the schema where the table resides; defaults to
DEFAULT_SCHEMA(i.e.'dbo') ifschema_name=None.confirmation_required (bool) – Whether to prompt for confirmation before proceeding; defaults to
True.verbose (bool | int) – Whether to print relevant information in the console; defaults to
False.indent (int | str | None) – Indentation level; if an integer, represents the number of spaces; If a string, used as the indentation character (e.g.
'\t'); defaults toNone(no space).raise_error (bool) – Whether to raise the provided exception; if
raise_error=False(default), the error will be suppressed.
See also
Examples for the method
create_table().