The exec() method is used to execute SQL statements that do not return a result set, such as
INSERT, UPDATE, or DELETE. The main advantage of this method is that it
returns an integer representing the number of rows that were affected (added, updated, or deleted) by the command.
If no rows were affected, the method returns 0.
Practical Application: We use the exec method for quick operations where prepared
statements are not required (e.g., clearing logs or quick status updates). Check the process at home by following
these steps:
users table with test data exists within the pdo_db database.