![]() Similar to the table generation query, the query to add data uses the cursor object to execute the query. Let’s take a look at how to add data with SQLite in Python to the database we just created. We’re now ready to begin adding in data! Adding Data with SQLite in Python To create our other table, we can follow a similar pattern and write the following commands: cur.execute("""CREATE TABLE IF NOT EXISTS orders(Īfter executing these two scripts, your database will have two tables.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |