值表
id name attributes_id
1 black 3 [->]
2 red 3 [->]
3 blue 3 [->]
5 tortorise 3 [->]
6 oakley 1 [->]
9 green 3 [->]
10 native 1 [->]
product_values 表
values_id products_id
1 [->] 5 [->]
2 [->] 10 [->]
sql
SELECT values.name, product_values.products_id FROM `product_values` inner
join values ON product_values.values_id=values.id;
错误
You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near 'values on
product_values.values_id=values.id' at line 1
感谢您的帮助。