Код: Выделить всё
users table
userid| username | password | profilepicture
PK/AI userid
albums table
albumid | userid | albumpicture | albumname | albumgenre
PK/AI albumid
FK userid to users
albumsongs table
songid | userid | albumid | songname | songpath
PK/AI songid
FK userid to users
FK albumid to albums
< /code>
Это мой PHP -код для вставки информации о альбоме в таблицу альбомов: < /p>
Подробнее здесь: [url]https://stackoverflow.com/questions/79712593/inserting-into-a-table-with-a-foreign-key[/url]
Мобильная версия