asp查詢兩個表中重複資訊

2022-10-03 18:10:11 字數 562 閱讀 8379

1樓:

set rs=server.createobject("adodb.recordset")

sql="select * from problem,hotproblem where hotproblem.problemid=problem.problemid and hotproblem.

subjectid=problem.subjectid"

rs.open sql,conn,1,1

開啟資料表後直接輸出你需要的資料即可 主要的核心就是這句sqlselect * from problem,hotproblem where hotproblem.problemid=problem.problemid and hotproblem.

subjectid=problem.subjectid望採納

2樓:匿名使用者

貌似應該叫做sql語句:

select a.*, b.* from hotproblem a inner join problem b on a.problemid = b.problemid

access資料庫兩個表關聯去重複的查詢

問題描述不夠清楚,我寫的是查詢每個使用者的max yuejifen 並列出對應a表中的編號 b表中的username,問題分解如下 1 先查a表userid,max yuejifen select userid,max yuejifen as maxyue from a group by useri...

利用Access查詢兩個表中相同欄位的問題急謝謝了

select b.id,a.name from b left join a on a.id b.id sql查詢兩個表相同的兩個欄位裡不同的資料有哪些 sql語句如下 select from table1 full join table2 on table1.xingming table2.xing...

EXCEL兩個表中如何查詢相同的資料,並用顏色標註出來

點格式中的 條件格式 選擇等於你要的資料,點格式,選擇 圖案 確定,這樣就可以把要找的資料標出來。但是在兩個表中查詢相同的,並還用顏色標出來,這我還不會,不過希望我的回答能給你一點幫助。vlookup a1,表2 a 1 b 5,2,false 這個可以對兩個 的兩列進行核對 你可以吧兩張表的資料放...