What is the significance of removing parentheses in an UPDATE query in PHP?

When writing an UPDATE query in PHP, removing parentheses from the SET clause can cause the query to fail. This is because parentheses are required to properly set the values for the columns being updated. To solve this issue, make sure to include parentheses in the SET clause when writing an UPDATE query in PHP.

// Incorrect way of writing an UPDATE query without parentheses in the SET clause
$sql = "UPDATE table_name SET column1 = value1, column2 = value2 WHERE condition";

// Correct way of writing an UPDATE query with parentheses in the SET clause
$sql = "UPDATE table_name SET (column1 = value1, column2 = value2) WHERE condition";