![]() |
Problems finding entries with a comma delimited list...
Okay... I have a table called "media" full of entries stored by a primary key called "mediaID". I have another table called "media_playlist" with a primary key called "playlistID"; this table also has a comma delimited text field with entries for "mediaIDs". So it would be like:
media_playlist playlistID = 1 mediaIDs = 776, 448 Now I want to use this column for mediaIDs, and pull up information from the "media" table. Ideally, using the following code should be able to do it: Code:
SELECT media.* |
Don't use comma delimited strings if you need to search single IDs. Normalize the table so that each playlist has more rows.
PlaylistID | mediaID 1 | 776 1 | 448 |
All times are GMT. The time now is 04:15 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|