SQL Class 18.1 : DML AFTER Trigger (Zero to Pro in Database)| Microsoft SQL Server | in English
Автор: Binary World - Debabrata Guha
Загружено: 2023-07-28
Просмотров: 102
Trigger is the combination of scripts. But it does not run on specific time. It runs when an event happens. It is not time bound, it is event bound. So if any DDL,DML or logon happens in database, the scripts written inside trigger start working.
So today we will start giving the examples of DML AFTER trigger. Which works on a particular table after the DML events like INSERT, UPDATE, DELETE. You can write any type of scripts inside trigger It might be a simple printing "Hi" as well.
Generally 2 virtual table/magic tables (called INSERTED and DELETED) created in database at the time of happening some event. So we can get the inserted and deleted data from those 2 tables. We can keep a log or we can use recalculate few data once after some update,insert,delete happens on a table. It will work as per situation and as per requirement. So atleast we have some option for this kind of activities.
This is the very preliminary idea of Trigger. I have tried to show many examples and working and properties of trigger in this class. It is just the starting. It will take some time to have the confidence on this topic. We will check this at next few classes even. Please let me know in comment section if you are having any doubt on this
:::::::::::::::::::::::: Course Links ::::::::::::::::::::::::::::::::::::
Link of the full playlist:
• ULTIMATE SQL (Zero to Pro in Database) .. ...
::::::::::::::::::::::::Few Key Information are as following:::::::::::::::::::::::::::::::
1. This course will be based on Microsoft SQL Server. But the focus is Database.
2. Language mode is English
3. This can be referred for any DBMS related syllabus including Engineering syllabus. But as per me it will go beyond of any syllabus.
4. Can be referred for job seeking purpose. Freshers or Experienced.
5. All the Exercises are available on the facebook Group "Binary World (Computer Science)" on the following link:
/ 331231161093613
6. For any type of queries or solution copy please contact me at debabrataguha20@gmail.com
7. To know about me, you can visit to the following blog link: https://binaryworld-debabrataguha.blo...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: