About 13,500,000 results
Open links in new tab
  1. How do I UPDATE from a SELECT in SQL Server? - Stack Overflow

    Feb 25, 2010 · In SQL Server, it is possible to insert rows into a table with an INSERT.. SELECT statement: INSERT INTO Table (col1, col2, col3) SELECT col1, col2, col3 FROM other_table …

  2. How can I do an UPDATE statement with JOIN in SQL Server?

    This was an example, but the point is as Eric said in How can I do an UPDATE statement with JOIN in SQL Server?. You need to add an UPDATE statement at first with the full address of …

  3. SQL UPDATE WHERE IN (List) or UPDATE each individually?

    Oct 19, 2015 · UPDATE table1 SET somecolumn = 'someVal' WHERE ID IN (SELECT ID FROM @definedTable); In the above, @definedTable is a SQL 'User Defined Table Type', where the …

  4. if condition in sql server update query - Stack Overflow

    May 21, 2017 · I have a SQL server table in which there are 2 columns that I want to update either of their values according to a flag sent to the stored procedure along with the new value, …

  5. SQL - Update multiple records in one query - Stack Overflow

    I have table - config. Schema: config_name | config_value And I would like to update multiple records in one query. I try like that: UPDATE config SET t1.config_value = 'value' , t2.config_va...

  6. sql - When to use "ON UPDATE CASCADE" - Stack Overflow

    Sep 26, 2009 · ON UPDATE CASCADE: SQL Server updates the corresponding rows in the child table when the rows in the parent table are updated. ON UPDATE SET NULL: SQL Server …

  7. How to update Identity Column in SQL Server? - Stack Overflow

    Oct 3, 2013 · You can not update identity column. SQL Server does not allow to update the identity column unlike what you can do with other columns with an update statement. Although …

  8. SQL update query using joins - Stack Overflow

    If you are using SQL Server you can update one table from other table without specifying a join and simply link the two tables from the where clause. This makes a much simpler SQL query:

  9. Using "WITH" and "UPDATE" statements in the same SQL query

    Aug 15, 2017 · Using "WITH" and "UPDATE" statements in the same SQL query Asked 8 years, 2 months ago Modified 8 years, 2 months ago Viewed 44k times

  10. T-SQL: Using a CASE in an UPDATE statement to update certain …

    5 I want to change or update my ContactNo to 8018070999 where there is 8018070777 using Case statement