Really a nice video madam.clear understanding.Thanks for your efforts.Please make more videos related to PLSQL functions.My kind request is to plz teach us the cursor and its uses like the trigger video
HI hema ...i have doubt... To delete commands after using triggers....the records are deleting in Original table.... But in virtual table that deleted records are available na ....those records are consuming memory which is in virtual table??....Please help on this...
Hi, "DELETED" table is just a temporary table and its memory gets released automatically once the trigger is completed. The cause for more memory consumption can be due to other reasons. Like, if you are deleting a large dataset, it may increase transaction log size, just ensure if you have correctly sized them. Or try to split the delete in to small batches in case of large datasets and also have a look at the index management.
Employees id base pani 1 record delete pana employee audit table store agum so Athu va name instead of id use pani delete pana audit table store aguma same query sis..
Hi@@lathankumar5868 You can use any filter to delete the records and those deleted records will get saved in the audit table. If you want other details of the employee like `to be stored in the audit table, add required columns to the audit table and make changes in the select statement in the trigger to include those columns.
Hi @prasannami6421 There are syntax differences between them. You can try something like this in oracle. CREATE OR REPLACE TRIGGER trg_emp_audit BEFORE INSERT ON employees FOR EACH ROW BEGIN INSERT INTO employees_audit VALUES (:NEW.EMPLOYEE_ID, 'INS', SYSDATE); END
I have tried and got the answer madam... Are you able to guide the Procedure lecture ( I need from root level with basic concepts... If possible a graphical explanation)... I think you are a master in SQL so only asked
Great explanation
Thank you mam.... I pass the exam... 🎉
Congrats @sps3831, I'm glad that my video helped you.
Simple explanation mam. It was easy to understand thank you
Thank you so much for your explanation mam 🙏 😊
Super Mam First Class Explanation with Query with Example
Excellent explanation!!! Thank you
Super thanks lots of u madam
TQ for this video Mam😊
Really a nice video madam.clear understanding.Thanks for your efforts.Please make more videos related to PLSQL functions.My kind request is to plz teach us the cursor and its uses like the trigger video
Sure, thanks @kedarnathk6326
Thanks! Your content is awesome. Keep rocking!
Nice video Mam
Tq for this video😊
Amazing❤
Perfect explanation
Mam upload SQL project...it's very helpful
Good explanation
super Hema
This is sql server super mam pls teach us oracle plsql triggers mam
Hi please upload a video on SQL performance tuning.
Sure @mullaipugazhendi3236
@@TechWithHema Yes, please
store procedurela function eppadi call pannalam and scalar fuction na enna and table value function and user difined function
Sure @tamilarasanparivallal9196
Tnk you mam❤
Visual basic 6 yeppadi use panni program pandradhu nu video podunga
Hi Mam i used the query that you used in the video for creating a trigger and i am getting syntax error near ON
I'm using MSSQL, if you are using a different DBMS, you may get an error.
thank you
HI hema ...i have doubt... To delete commands after using triggers....the records are deleting in Original table.... But in virtual table that deleted records are available na ....those records are consuming memory which is in virtual table??....Please help on this...
Hi, "DELETED" table is just a temporary table and its memory gets released automatically once the trigger is completed. The cause for more memory consumption can be due to other reasons. Like, if you are deleting a large dataset, it may increase transaction log size, just ensure if you have correctly sized them. Or try to split the delete in to small batches in case of large datasets and also have a look at the index management.
mam please upload MsSQL Full tutorial video mam
Sure @magarajothik3144
Hi sis,delete the one record based on employees id in case we have select name it will delete it can be store empaudit table same query??
Sorry @lathankumar5868, I couldn't understand your question. Can you explain in detail?
Employees id base pani 1 record delete pana employee audit table store agum so Athu va name instead of id use pani delete pana audit table store aguma same query sis..
Hi@@lathankumar5868 You can use any filter to delete the records and those deleted records will get saved in the audit table. If you want other details of the employee like `to be stored in the audit table, add required columns to the audit table and make changes in the select statement in the trigger to include those columns.
@@TechWithHema thank you
nosql paththii sollunga sis
Can you plz update events video also
Hi @sivaranjani1500 events are available in MYSQL. Equivalent for events in MSSQL is Sql Server Agent jobs. I can make a video about that.
Tq for replying me 😊
mam eththanai type of parameter irukku and atha eppadila use pannalam atha outputla eppadi prinmt pannalam atha slunga mam
Hi @tamilarasanparivallal9196 you can check out my Stored procedure video where I have explained about input and output parameters.
But I want explain deeply mam using many number of parameter same time
sure @@Entertainment-77m
sql query optimize need hema
I need elborate session from trigger
indha method epadi mysql la work out pandradhu
Same query i execute in my laptop, but it is not executing and showing error.... Why
Hi @prasannami6421, Are you using MSSQL? What is the error message?
I am using Oracle SQL
Hi @prasannami6421 There are syntax differences between them. You can try something like this in oracle.
CREATE OR REPLACE TRIGGER trg_emp_audit
BEFORE INSERT ON employees
FOR EACH ROW
BEGIN
INSERT INTO employees_audit
VALUES (:NEW.EMPLOYEE_ID, 'INS', SYSDATE);
END
I have tried and got the answer madam...
Are you able to guide the Procedure lecture ( I need from root level with basic concepts... If possible a graphical explanation)... I think you are a master in SQL so only asked
Hi @@prasannami6421 , Are you looking for Stored procedure topic? You can find in this link th-cam.com/video/vJOsW41S16E/w-d-xo.html
Why you're using UNION ALL in between insert and delete?
Good explanation