list in one column mysql 1

list in one column mysql

country table
-------------
id
name
other_column


rule table
----------
id
name
other_column


countryrules table
------------------
country_id
rule_id

Here is what the above code is Doing:
1. It’s creating a new CountryRules object.
2. It’s setting the country_id to the id of the country object.
3. It’s setting the rule_id to the id of the rule object.
4. It’s saving the CountryRules object.

Similar Posts