Query in PHP MySQL database, how to associate one field to the field of another table

  1. has two tables. The a field in table An is the primary key b in table B, but a is not simply storing a b field, but multiple b , see the following figure

Among the two pieces of data in Table An in the

figure, some of the a fields are 3. If the data is poor in batches, how does PHP change the corresponding numbers into other field names in the corresponding B table?

is actually similar to the type tags in NetEYYun music list data. Multiple tags correspond to multiple id,.

Mar.22,2021

Ah, I used to like to use your way, but now I don't like it very much. However, mysql has a function to find the included. Let me find this function name for you. Find_in_set this, but there seems to be another one, I forgot. You can take a look at the link description

find out for yourself, say no more.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3aa4e-4126f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3aa4e-4126f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?