Hello, I am trying to build a dynamic query in MYSQL to join a table which its name is stored as a field value on another table like this :
SELECT * FROM CATEGORIES
INNER JOIN CATEGORISATIONS ON CATEGORISATIONS.id = CATEGORIES.fk_categorisation
INNER JOIN [CATEGORISATIONS.nom_table] LV_REGIONS ON LV_REGIONS.id = CATEGORIES.valeur
Any answer?!