snowflake.snowpark.DataFrameWriter.insert_into¶
- DataFrameWriter.insert_into(table_name: Union[str, Iterable[str]], overwrite: bool = False) None[source]¶
Inserts the content of the DataFrame to the specified table. It requires that the schema of the DataFrame is the same as the schema of the table.
- Parameters:
table_name – A string or list of strings representing table name. If input is a string, it represents the table name; if input is of type iterable of strings, it represents the fully-qualified object identifier (database name, schema name, and table name).
overwrite – If True, the content of table will be overwritten. If False, the data will be appended to the table. Default is False.
Example: