About 549,000 results
Open links in new tab
  1. sql - UPDATE from a SELECT - Stack Overflow

    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 WHERE sql = 'cool' Is i...

  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 all tables to join …

  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 data …

  4. 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...

  5. SQL Update from One Table to Another Based on a ID Match

    Oct 22, 2008 · I match these to a file to update any card numbers to the account number so that I am only working with account numbers. I created a view linking the table to the account/card database to …

  6. sql - Update statement using with clause - Stack Overflow

    ) update t set SomeColumn = c.ComputedValue from mytable t inner join comp c on t.id = c.id The real thing has quite a few with clauses that all reference each other, so any suggestions actually using …

  7. sql - Update values in identity column - Stack Overflow

    Oct 16, 2010 · 12 You cannot update the Identity Column in SQL Server. You have to delete the original record, then Insert the record with the Identity value because there is no support for updating an …

  8. sql server - Update multiple columns in SQL - Stack Overflow

    Jan 31, 2012 · 262 Is there a way to update multiple columns in SQL server the same way an insert statement is used? Something like:

  9. sql - Update multiple rows using select statement - Stack Overflow

    Jun 28, 2012 · update table2 set value = table1.value from table1 where table1.id = table2.id Note that this syntax works in SQL Server but may be different in other databases.

  10. how to increment integer Columns value by 1 in SQL

    May 25, 2017 · CREATE SEQUENCE seq_person MINVALUE 1 START WITH 1 INCREMENT BY 1 CACHE 10 The code above creates a sequence object called seq_person, that starts with 1 and will …