SQL DML Commands Flashcards
COPY INTO<location></location>
Unloads data from a table (or query) into one or more files in one of the following locations.
COPY INTO<table>
Loads data from staged files to an existing table.
DELETE
Remove rows from a table.
GET
Downloads data files from one of the following Snowflake stages to a local directory/folder on a client machine.
INSERT
Updates a table by inserting one or more rows into the table.
INSERT (multi-table)
Updates multiple tables by inserting one or more rows with column values (from a query) into the tables.
LIST
Returns a list of files that have been staged (i.e. uploaded from a local file system or unloaded from a table) in one of the following Snowflake stages.
MERGE
Inserts, updates, and deletes values in a table based on values in a second table or a subquery.
PUT
Uploads (i.e. stages) data files from a local directory/folder on a client machine to one of the following Snowflake stages.
REMOVE
Removes files from either an external (external cloud storage) or internal (i.e. Snowflake) stage.
TRUNCATE TABLE
Removes all rows from a table but leaves the table intact (including all privileges and constraints on the table).
UPDATE
Updates specified rows in the target table with new values.