當前位置:首頁 » 操作系統 » 資料庫左聯

資料庫左聯

發布時間: 2023-09-29 04:51:35

Ⅰ 關聯兩個表有幾種方法,比如說是sqlserver資料庫的關聯方式

關聯兩個表的方式包含內連接,外連接(左外連接,右外連接),交叉連接。
參考語句:
內連接
select * from student a
inner join stuMarks b
on a.stuid=b.stuid
外連接
select * from student a
inner join stuMarks b
on a.stuid=b.stuid
交叉連接
select * from student a
crossjoin stuMarks b

熱點內容
設計php框架 發布:2025-09-17 21:50:05 瀏覽:174
sql統計條數 發布:2025-09-17 21:49:51 瀏覽:705
javastatic和 發布:2025-09-17 21:35:35 瀏覽:362
星星演算法 發布:2025-09-17 21:34:19 瀏覽:136
杭州版式文件伺服器地址怎麼填寫 發布:2025-09-17 21:17:42 瀏覽:986
linux的dns怎麼配置 發布:2025-09-17 21:17:24 瀏覽:903
如何把安卓的軟體放到蘋果平板上 發布:2025-09-17 21:09:38 瀏覽:490
win7svn伺服器搭建 發布:2025-09-17 21:01:03 瀏覽:905
python寫shell腳本 發布:2025-09-17 20:50:22 瀏覽:807
數字存儲卡有用嗎 發布:2025-09-17 20:31:00 瀏覽:496