UPDATE (DML)
Summary
The UPDATE statement changes existing rows and columns of data in a table.
Syntax
UPDATE <schema_name.table_name> SET column_name = new_value[, column_name2..n = new_value2..n] [WHERE];
|
Examples
UPDATE delta.test_table SET col1 = 'We are all the same.';
UPDATE delta.test_table SET col1 = 'We are all the same.', col2 = 123, col3 = 42;
UPDATE delta.test_table SET col1 = 'We are all the same.' WHERE col1 = 'We were once different';
UPDATE delta.test_table SET col1 = (SELECT string1 FROM AllTypes() WHERE string1 = 'abc123');
|