pandas.errors.DatabaseError

exception pandas.errors.DatabaseError[source]

Error is raised when executing sql with bad syntax or sql that throws an error.

Examples

>>> from sqlite3 import connect
>>> conn = connect(':memory:')
>>> pd.read_sql('select * test', conn) 
... # DatabaseError: Execution failed on sql 'test': near "test": syntax error