带 WHERE 子句的多表查询

This commit is contained in:
GuanM 2024-11-19 15:20:25 +08:00
parent 502ac4aa23
commit cb3e0fd205

View File

@ -0,0 +1,15 @@
USE Mall
GO
SET NOCOUNT ON
--********** Begin **********--
SELECT p.prod_id, p.prod_name, p.prod_price, p.vend_id,
v.vend_id, v.vend_name, v.vend_phone
FROM Products p, Vendors v
WHERE p.vend_id = v.vend_id
--********** End **********--
GO