It seems to me that both rowCount() and exec() Returns the number of rows affected by the last SQL statement .
Why keep the duplicate stuff there?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They are not duplicate they have different-2 roles to play at different situations.
They are different in this way
If you are using execute() then rowCount come into it’s role
And when you are using exec no need to
rowCount()