About 50,800,000 results
Open links in new tab
  1. sql - Update multiple values in a single statement - Stack Overflow

    Nov 14, 2008 · I have a master / detail table and want to update some summary values in the master table against the detail table. I know I can update them like this: update MasterTbl set …

  2. SQL UPDATE Statement - W3Schools

    UPDATE Multiple Records. It is the WHERE clause that determines how many records will be updated. The following SQL statement will update the ContactName to "Juan" for all records …

  3. How to Update Multiple Records Using One Query in SQL Server?

    May 13, 2024 · To update multiple records of a table based on multiple conditions in SQL server, use this syntax: UPDATE table_name SET column_value = CASE column_name WHEN …

  4. Update Multiple Rows With Different Values With Single Query

    Apr 24, 2025 · Explore how to update multiple rows with different values, depending on the value of existing columns

  5. SQL Statement with multiple SETs and WHEREs - Stack Overflow

    Best option is multiple updates. Alternatively you can do the following but is NOT recommended: UPDATE table SET ID = CASE WHEN ID = 2555 THEN 111111259 WHEN ID = 2724 THEN …

  6. mysql - How can I UPDATE multiple ROWs in a Single Query with multiple

    Feb 18, 2018 · It is possible to update rows based on some condition. It is also possible to update multiple tables in one statement in MySQL. Whether the latter is a good idea is debatable, …

  7. How to Update Multiple Columns in SQL - DataCamp

    Nov 8, 2024 · This article will explore how to update multiple columns using SQL, covering syntax, techniques, and examples to demonstrate the best practices. You will learn how to update …

  8. How to Update Multiple Columns in Single Update Statement in SQL ...

    Dec 17, 2024 · Rather than executing separate update statements for each column, SQL provides a way to update multiple columns at once in a single query. In this article, we will explain the …

  9. How to Update Multiple Columns in SQL: Efficient Techniques …

    Jun 28, 2023 · Here are the primary steps required for updating multiple columns: Identify the table to be updated. Specify the new data values for each targeted column. Apply a condition, …

  10. SQL UPDATE - Dofactory

    Dec 21, 2023 · One way to update multiple rows is to write multiple UPDATE statements. They can be separated with a semicolon (;) and submitted as a group (called a batch). Alternatively, …

  11. Some results have been removed
Refresh