6

How do I list a DB's tables with Python's DB API?

Failing that, is there another way to do it?

Thanks

user1458476
  • 143
  • 1
  • 8

1 Answers1

14

The DBAPI does not have a function for this so unfortunately you need to use SQL that is specific to the database engine (there is no standardized way to list tables).

Community
  • 1
  • 1
ThiefMaster
  • 298,938
  • 77
  • 579
  • 623