I need to store a varying number of picture links for each product that I have in my database. Sometimes the products only have one link, sometimes 10 (or even more). Storing all links in one field are not a good practice as I know. But the only alternative I can think of is having x columns with many empty datasets (e.g. if the product only has one link) which is also not a proper way to do this. Maybe someone of you has another idea? If not, what is the best way to delimit all links in one field? Many thanks! Your help is very much appreciated!
What is the best way to store a varying number of links per record (product/row) in a MySQL database?
48 Views Asked by plantcode At
1
There are 1 best solutions below
Related Questions in MYSQL
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to change woocomerce or full wordpress currency with value from USD to AUD
- window.location.href redirects but is causing problems on the webpage
- Error: local variable 'bramka' referenced before assignment
- Products aren't displayed after fetching data from mysql db (node.js & express)
- status table for all entries (even in different dates) in database changing value when all checkboxes are checked
- Can't Fix Mariadb & Mysql ERROR 2002 (HY000): Can't connect to local server through socket '/tmp/mysql.sock' (2) On MacOs
- Express Mysql getting max ID from table not working cought in a promise
- failed to upload a table from sql file
- Update a MySQL row depending on the ID in Google Sheets Apps Script
- Use row values from another table to select them as columns and establish relations between them (pivot table)
- SQL: Generate combination table based on source and destination column from same table
- How to display the column names which have only unique non-null values in MySQL table?
- mysql query takes too long because of wrong indexes usage
- Multitable joining in Sql
Related Questions in STORING-DATA
- Adding array to redux store, but it's only taking the original state of the array items
- Store the reference to a method without losing classes changes C# Unity
- Django does not save images that i am uploading
- I want this program to return all the string values in a table form, but this is returning the value of last string only
- How to storage de data of an array and then mark a checbox when the checbox is mark on the google forms?
- Storing data with multiple values pernamently in Java Android Studio
- PHP - Retrieve email from $_SESSION
- How to remove one type of files (raw photos) from folder structure?
- Storing Binary Combinations in an elegant way
- LARAVEL 9: Data from form modals not successfully saved to database when id_jenisizin value == 1 || id_jenisizin == 2
- data variables returns to 0 after changing them in one file
- Nokogiri Ruby scrape working, but is it possible and how to store the data to a google sheets/csv/db file?
- Storing data from lineEdits to variables in Python
- Are BigIntegers safe?
- How can i save a Password decryptable but securely in a database?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Create a second table, that has a reference back to the product table. Store one link per row. You can create zero, one, or many rows per product.