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 = '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 · In that case, the SQL engine has to recompile the SQL statement and come up with an execution plan, etc. every single time. Probably the best thing to do is to make a prepared statement …

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

  5. sql server - SQL update query using joins - Stack Overflow

    17 Did not use your sql above but here is an example of updating a table based on a join statement.

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

    Oct 22, 2008 · Just a note on this solution, UPDATE...FROM is proprietary therefore, if you cannot use the MERGE statement because you are using SQL 2005 or earlier, this is an ANSI-compliant method …

  7. Update query using Subquery in Sql Server - Stack Overflow

    Update query using Subquery in Sql Server Asked 12 years, 11 months ago Modified 5 years, 11 months ago Viewed 441k times

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

    If you need to update several rows at a time, the alternative is prepared statement: database complies a query pattern you provide the first time, keep the compiled result for current connection (depends on …

  9. Solutions for INSERT OR UPDATE on SQL Server - Stack Overflow

    Sep 20, 2008 · Similar questions: * Insert Update stored proc on SQL Server * SQL Server 2005 implementation of MySQL REPLACE INTO?

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

    Mar 15, 2010 · I have a query which works fine in MySQL, but when I run it on Oracle I get the following error: SQL Error: ORA-00933: SQL command not properly ended 00933. 00000 - "SQL command …