Last answered:

11 Sept 2023

Posted on:

24 Nov 2022

1

The output shows zero rows returned when you Rollback?

When you rollback- it should show the number of rows but it always shows zero. Take a case when you deleted in the video without any condition and data got deleted in the departments_dup table. Now when you rollback- it should show the number of rows but it does not.

3 answers ( 0 marked as helpful)
Instructor
Posted on:

05 Dec 2022

0

Hi Abdul!

Thanks for reaching out.

Can you please clarify what you mean by "it always shows 0". Also, can you please support your question with screenshots to ensure that we are on the same page regarding the steps you are describing? This will help us assist you better.

Looking forward to your answer.
Kind regards,
Martin

Posted on:

31 Jul 2023

0

In the output, though the rollback worked (and reversed the changes), it shows "0 row(s) affected".

 

Instructor
Posted on:

11 Sept 2023

0

Hi Tetiana!

Thanks for reaching out.

This is MySQL's way to say that this command has not changed the state of the initial database. 

Hope this helps.
Best,
Martin

Submit an answer