Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 23 cze 2013 · I know I'm a little late to this, but I think an easier to read solution would be to use the IF() function in MySQL: UPDATE relation SET name1 = IF(userid1 = 3, 'jack', name1), name2 = IF(userid2 = 3, 'jack', name2) WHERE (userid1 = 3 AND userid2 = 4) OR (userid1 = 4 AND userid2 = 3);

  2. After it has been created, there are three main methods of interest that you can call: ExecuteReader to query the database. Results are usually returned in a MySqlDataReader object, created by ExecuteReader. ExecuteNonQuery to insert, update, and delete data. ExecuteScalar to return a single value.

  3. In this article, we would like to show you UPDATE query with IF condition in MySQL. Quick solution: UPDATE `table_name` SET `column_name` = IF(condition , if_true, if_false); Practical example. To show UPDATE query with IF condition, we will use the following users table:

  4. 12 cze 2024 · The UPDATE statement in MySQL is essential for modifying existing data in a table. It's commonly used to correct errors, update values, and make other necessary changes. This article explores the structure and use cases of the UPDATE statement, with clear and concise real-life examples.

  5. 21 sie 2024 · MySQL offers conditional control flow with IF statements, allowing us to execute blocks of SQL code depending on whether a condition is true or false. In this article, We will learn about What is Decision-Making in MySQL with different statements along with examples and so on.

  6. 24 lip 2024 · When working with MySQL databases in C#, constructing SQL queries can sometimes be cumbersome and error-prone. To streamline this process and enhance code readability, utilizing a query builder can be a game-changer. In this guide, we will explore how to leverage a query builder to dynamically create MySQL queries in C#.

  7. 22 lis 2010 · If you want to see changes to the actual database, you have two choices: The simple way to detect changes is to periodically execute a query, say every minute or every 5 minutes, and detect changes to the database; If you require real time changes, the alternative is to have a messaging service.

  1. Ludzie szukają również