如何将此SQL转换为使用连接?
SELECT
V.V_CONTACT, V.V_PHONE
FROM
VENDOR AS V,
PRODUCT AS P
WHERE
P.P_CODE = 'P1' AND
V.V_CODE = P.V_CODE;
答案 0 :(得分:4)
SELECT
V.V_CONTACT, V.V_PHONE
FROM
VENDOR AS V
JOIN PRODUCT AS P ON V.V_CODE = P.V_CODE
WHERE
P.P_CODE = 'P1';