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.

Menu