120k views
3 votes
What SQL command changes one or more attribute values for one or more tuples in a table

User Timestee
by
8.7k points

1 Answer

4 votes

Final answer:

The SQL command to change attribute values for tuples in a table is the UPDATE command, which modifies specified columns with new values based on the conditions given.

Step-by-step explanation:

The SQL command used to change one or more attribute values for one or more tuples in a table is the UPDATE command. The basic syntax of an UPDATE statement includes specifying the table name, the column(s) to be updated, and the new value(s). An optional WHERE clause can also be included to filter which rows should be updated.



Example:

UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;



This command will update the specified columns with the new values in rows that meet the condition set by the WHERE clause. Without a WHERE clause, all rows in the table would be updated.

User Tom Mesgert
by
8.1k points