Changes for page Update database after retrieval
Last modified by Danniar Firdausy on 2024/09/18 20:02
From version 12.1
edited by eMagiz
on 2022/06/10 12:01
on 2022/06/10 12:01
Change comment:
There is no comment for this version
To version 13.1
edited by Erik Bakker
on 2022/08/30 15:05
on 2022/08/30 15:05
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.e Magiz1 +XWiki.ebakker - Content
-
... ... @@ -4,9 +4,6 @@ 4 4 5 5 Should you have any questions, please get in touch with [[academy@emagiz.com>>mailto:academy@emagiz.com]]. 6 6 7 -* Last update: September 7th, 2021 8 -* Required reading time: 4 minutes 9 - 10 10 == 1. Prerequisites == 11 11 12 12 * Basic knowledge of the eMagiz platform ... ... @@ -15,8 +15,6 @@ 15 15 16 16 eMagiz offers the option to execute an update statement right after a select statement. In the database, this can be useful when tracking the status. 17 17 18 - 19 - 20 20 == 3. Update database after retrieval == 21 21 22 22 In the previous [microlearning](intermediate-database-connectivity-sql-query.md) we discussed the fundamentals of SQL queries. In this microlearning, we will learn how you could update the record(s) in the database the moment after you have read the information from the database. This functionality can help you update a status field to ensure you won't keep reading the same record(s) repeatedly. ... ... @@ -29,8 +29,6 @@ 29 29 30 30 In this example, we search for all rows within the table for which the value in the column processed is equal to false. If so, the select statement will return each row. After the query returns all rows, the update query will ensure that all these rows will be updated by changing the value in the column processed to true. This way, you ensure these records won't be retrieved the next time we execute the select statement. 31 31 32 - 33 - 34 34 == 4. Assignment == 35 35 36 36 See if you can find any database implementation within the projects you can access. This assignment can be completed with the help of the (Academy) project that you have created/used in the previous assignment. ... ... @@ -41,8 +41,6 @@ 41 41 * In the database, this can be useful when tracking the status. 42 42 * The update statement will update all rows returned via the select statement, assuming they pass the where clause 43 43 44 - 45 - 46 46 If you are interested in this topic and want more information, please read the help text provided by eMagiz and read more information on the following link: 47 47 48 48 * https://www.w3schools.com/sql/default.Asp ... ... @@ -51,6 +51,4 @@ 51 51 52 52 This video demonstrates how you could have handled the assignment and gives you some context on what you have just learned. 53 53 54 -{{video attachment="intermediate-database-connectivity-update-database-after-retrieval.mp4" reference="Main.Videos.Microlearning.WebHome"/}} 55 - 56 -)))((({{toc/}}))){{/container}}{{/container}} 45 +{{video attachment="intermediate-database-connectivity-update-database-after-retrieval.mp4" reference="Main.Videos.Microlearning.WebHome"/}})))((({{toc/}}))){{/container}}{{/container}}