About 84,300 results
Open links in new tab
  1. sql - How to update multiple columns in single update statement …

    Mar 26, 2014 · I want to update multiple columns of a table in DB2 with single Update statement. Any hint or idea will be appreciable. Thanks.

  2. sql - db2: update multiple rows and field with a select on a …

    Dec 12, 2011 · db2: update multiple rows and field with a select on a different table Asked 13 years, 10 months ago Modified 5 years, 11 months ago Viewed 100k times

  3. INNER JOIN in UPDATE sql for DB2 - Stack Overflow

    Nov 15, 2010 · Referring to tables as files, though, leads me to believe that you're NOT running DB2 on Linux, UNIX or Windows (LUW). However, if you are on DB2 LUW, see the MERGE …

  4. Can a DB2 WITH statement be used as part of an UPDATE or …

    1 If you're running DB2 V8 or later, there's an interesting SQL hack here that allows you to UPDATE/INSERT in a query with a WITH statement. For inserts & updates that require a lot of …

  5. IBM db2 update substring in column - Stack Overflow

    Jul 31, 2019 · If your Db2 version+platform supports REGEXP_REPLACE then consider using that. Plenty of examples online. Always tag your Db2 question with the correct platform tag for …

  6. db2 - SQL Statement with multiple SETs and WHEREs - Stack …

    3 since sql those all the lines you want it to do, I would do you're code like thise Inside you Sql management too do execute query and this should work.

  7. Update using select in DB2 - Database Administrators Stack …

    Apr 26, 2018 · An UPDATE without WHERE clause will update all the rows of the table. For those rows that don't have a matching address_id in table B, the subquery returns an empty result …

  8. sql - Does DB2 have an "insert or update" statement? - Stack …

    This response is to hopefully fully answer the query MrSimpleMind had in use-update-and-insert-in-same-query and to provide a working simple example of the DB2 MERGE statement with a …

  9. sql - DB2 update column with incrementing number based on …

    Feb 18, 2016 · DB2 update column with incrementing number based on distinct values in another column Asked 9 years, 8 months ago Modified 9 years, 8 months ago Viewed 5k times

  10. sql - How can I update the first n records in a DB2 table - Stack …

    Jan 1, 2015 · I'm having a hard time trying to update the first 100 records of a db2 table. I'm running the query from Squirrel 3.5.0 If I do this: SELECT * FROM "CUSTOMERS" WHERE …