内连接查询
This commit is contained in:
parent
1983d42713
commit
502ac4aa23
19
数据库/头歌/内连接查询/内连接查询.sh
Normal file
19
数据库/头歌/内连接查询/内连接查询.sh
Normal file
@ -0,0 +1,19 @@
|
||||
USE Mall
|
||||
GO
|
||||
|
||||
SET NOCOUNT ON
|
||||
|
||||
--********** Begin **********--
|
||||
SELECT
|
||||
p.prod_id,
|
||||
p.prod_name,
|
||||
p.prod_price,
|
||||
p.vend_id,
|
||||
v.vend_name,
|
||||
v.vend_phone
|
||||
FROM Products p
|
||||
INNER JOIN Vendors v
|
||||
ON p.vend_id = v.vend_id
|
||||
--********** End **********--
|
||||
|
||||
GO
|
Loading…
x
Reference in New Issue
Block a user