SQLA Demo: Beatles Database -- Inserting Records into a Bridge Table

Опубликовано: 20 Октябрь 2024
на канале: Thomas Blum
31
1

In this video we add to our Beatles database example a WTForms page that has two multi-selects -- one lists the artists and allows the user to choose more than one and the other lists the songs and again allows the user to choose more than one. The Flask/Python upon receiving the response from the user performs a nested loop through both lists and for each pair of (artist id, song id) inserts a record into the bridge table.