Thanks to visit codestin.com Credit goes to dev.mysql.com
Syntax:
count = ccnx.warning_count()
Returns the number of errors, warnings, and notes produced by the previous SQL statement.