About 50 results
Open links in new tab
  1. MySQL - UPDATE query based on SELECT Query - Stack Overflow

    MySQL - UPDATE query based on SELECT Query Asked 16 years, 6 months ago Modified 4 years, 2 months ago Viewed 1.6m times

  2. mysql - SQL - Update multiple records in one query - Stack Overflow

    211 I have table - config. Schema: config_name | config_value And I would like to update multiple records in one query. I try like that:

  3. MYSQL UPDATE with IN and Subquery - Stack Overflow

    Dec 14, 2015 · Here what sql query turns into after subquery runs: UPDATE entry SET total_comments = total_comments + 1 WHERE id IN (1,1,1,2,2,1) so update runs only once for 1 and 2 id's in entry …

  4. mysql - How to update column with null value - Stack Overflow

    Oct 6, 2010 · I am using mysql and need to update a column with a null value. I have tried this many different ways and the best I have gotten is an empty string. Is there a special syntax to do this?

  5. MySQL - Using If Then Else in MySQL UPDATE or SELECT Queries

    Aug 8, 2015 · UPDATE Table SET A = '1' IF A > 0 AND A < 1 SET A = '2' IF A > 1 AND A < 2 WHERE A IS NOT NULL; I have seen CASE expression and IF expression in Procedures and Functions but I …

  6. sql - mysql update query with sub query - Stack Overflow

    Jul 21, 2012 · The main issue is that the inner query cannot be related to your where clause on the outer update statement, because the where filter applies first to the table being updated before the inner …

  7. php - Increment value in MySQL update query - Stack Overflow

    You can increment directly in the update query (points = points + 1). (note : Also, it’s not a good idea to increment the value with PHP because you need to select first the data and the value can changed if …

  8. sql - Multiple Updates in MySQL - Stack Overflow

    I know that you can insert multiple rows at once, is there a way to update multiple rows at once (as in, in one query) in MySQL? Edit: For example I have the following Name id Col1 Col2 Row1 ...

  9. sql - Conditional UPDATE in MySQL - Stack Overflow

    Jun 23, 2013 · Conditional UPDATE in MySQL Asked 12 years, 7 months ago Modified 4 years, 7 months ago Viewed 55k times

  10. Update query not working in mysql workbench - Stack Overflow

    Nov 28, 2015 · I am using MySql Workbench to execute the query. But it's not updating the row and shows this error: You are using safe update mode and you tried to update a table without a WHERE …