我想以标准格式编写此查询。
SELECT orders. order_id, suppliers.name
FROM suppliers
INNER JOIN orders
ON suppliers. supplier_id = orders. supplier_id
ORDER BY order_id;
答案 0 :(得分:0)
互联网上有很多有关此主题的示例。请看以下页面:https://www.objectdb.com/java/jpa/query/jpql/from#FROM_and_JOIN_in_Criteria_Queries