我正在尝试INNER JOIN'order'表和'customer'表但它不起作用。常见字段是'cus_id'。这是我的INNER JOIN代码:
SELECT *
FROM customer
INNER JOIN order ON customer.cus_id = order.cus_id;
答案 0 :(得分:1)
订单是mysql的关键词。使它被后面的刻度所包围
SELECT *
FROM customer
INNER JOIN `order` ON customer.cus_id = order.cus_id;