Is the rollback of the transaction a failure of sql execution or will it be rolled back if the number of affected rows is 0?

is the rollback of the transaction a failure of sql execution or a success of sql execution, but will be rolled back if the number of rows affected by additions, deletions and changes is 0?

Apr.18,2022

rollback
including a series of abnormal execution end scenarios such as broken connection or killed due to deadlock


transaction is a set of sql statements that are either successful or unsuccessful.
transaction rollback occurs when one of the set of sql statements fails to execute successfully.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30300-2bcd8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30300-2bcd8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?