About 50 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 …

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

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

    This worked great for me when trying to update multiple values for several items and using a case statement to apply a specific value for a field from one table to another as well.

  5. SQL update query syntax with inner join - Stack Overflow

    I'm using SQL Server 2000 and I want to update all entries in the CostEntry table to the corresponding value in the ActiveCostDetails table. The where clause DOES work with a …

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

    Jan 31, 2012 · 26 The Update table1 set (a,b,c) = (select x,y,x) syntax is an example of the use of row-value constructors, Oracle supports this, MSSQL does not. (Connect item)

  7. Incorrect syntax near ( SQL Update command) - Stack Overflow

    Nov 6, 2015 · Incorrect syntax near ( SQL Update command) Asked 10 years, 3 months ago Modified 10 years, 3 months ago Viewed 7k times

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

    Oct 22, 2008 · 174 For SQL Server 2008 + Using MERGE rather than the proprietary UPDATE ... FROM syntax has some appeal.

  9. sql - Update statement with inner join on Oracle - Stack Overflow

    Mar 15, 2010 · UPDATE (SELECT table1.value as OLD, table2.CODE as NEW FROM table1 INNER JOIN table2 ON table1.value = table2.DESC WHERE table1.UPDATETYPE='blah' ) t …

  10. sql - SAP HANA update with join - Stack Overflow

    Oct 20, 2022 · UPDATE TABX AS a SET b.att1 = 'XXX', b.att2 = 'ZZZ' LEFT JOIN TABZ AS b ON a.att3 = b.att3 WHERE a.att4 LIKE 'YYY' AND att5 = 'PPP' AND is_valid = 'TRUE' According …