6

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

Failing that, is there another way to do it?

Thanks

1 Answer 1

15

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).

Sign up to request clarification or add additional context in comments.

2 Comments

Now that's what I call an answer
@user1458476: We have SO as a knowledgebase, what do you expect? :-P

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.