Can you split/explode a field in a MySQL query?

后端 未结 17 1158
无人及你
无人及你 2020-11-22 04:03

I have to create a report on some student completions. The students each belong to one client. Here are the tables (simplified for this question).

CREATE TAB         


        
17条回答
  •  我寻月下人不归
    2020-11-22 04:34

    There's an easier way, have a link table, i.e.:

    Table 1: clients, client info, blah blah blah

    Table 2: courses, course info, blah blah

    Table 3: clientid, courseid

    Then do a JOIN and you're off to the races.

提交回复
热议问题