Quiz on Create Table in PostgreSQL with Python



1. What command is used to create a table in PostgreSQL using Python?
2. Which Python library is commonly used to connect to PostgreSQL?
3. What must be done before executing SQL commands like creating a table?
4. What is the purpose of the 'execute' method in the context of creating a table?
5. After creating a table, which command is used to commit the changes in PostgreSQL?

Advertisements