From 502ac4aa23292576878a5e42fb3cde66bc748daa Mon Sep 17 00:00:00 2001 From: GuanM <30427262+sxhoio@users.noreply.github.com.> Date: Tue, 19 Nov 2024 15:18:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E8=BF=9E=E6=8E=A5=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 数据库/头歌/内连接查询/内连接查询.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 数据库/头歌/内连接查询/内连接查询.sh diff --git a/数据库/头歌/内连接查询/内连接查询.sh b/数据库/头歌/内连接查询/内连接查询.sh new file mode 100644 index 0000000..f917a05 --- /dev/null +++ b/数据库/头歌/内连接查询/内连接查询.sh @@ -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 \ No newline at end of file