Coding in RPG (IBM i/AS400). Using SQL history tables.

preview_player
Показать описание
In this video I'd like to show you an example of how you can create and use history tables in SQL.
This is something that is very useful, for storing changes and deleted records, and is something that is automatically done by the database engine.

Please, let me know what you think about it. Leave your comments below.
Don't forget to subscribe!

#ibmi #ibm #rpg #rpgle #rpgfree #newvideo #ibmtraining #ibmcoding #rpgtraining #as400 #common #modernize #SQL #temporaltables #ibmchampion

0:00 Introduction
0:45 Starting creating a table using Run SQL Scripts
1:26 Creating the history table
1:50 Adding both tables to be journalized
3:10 Using "ADD VERSIONING USE HISTORY TABLE"
3:48 Adding some records to the table
4:45 Talking about "implicitly hidden" fields
6:40 Updating a record in my table, and watching the history table
8:00 Deleting a record in my table, and watching the history table
8:56 Recovering deleted data from the history table and inserting it into the main table
10:44 Unlinking the history table with the main table, so I can drop them
11:34 Final comments and ending
Рекомендации по теме
Комментарии
Автор

excellent. Had no idea this feature existed.

Steve-Richter
Автор

Me ha gustado el truco de llamar a una instrucción CL desde aquí!

higiniofuentes
welcome to shbcf.ru