select A.* from tb_mend_enrol A, (select A.Typeid, A.address from tb_mend_enrol A ...
https: zhidao.baidu.com question .html 展開全部 select from A inner join B on A.Name B.Name and A.ID B.ID where A.Name 張三 and A.ID 內連接即可 或者: 除重 select distinct A.ID ASAID,A.Name AS AName,B.ID ASBID,B.Name ...
2021-04-29 19:53 0 887 推薦指數:
select A.* from tb_mend_enrol A, (select A.Typeid, A.address from tb_mend_enrol A ...
select * from (select xm,je from table) a , (select xm01,je01 from table) bwhere a.xm = b.xm01and a. ...
首先描述問題,student表中有字段startID,endID。garde表中的ID需要對應student表中的startID或者student表中的endID才能查出grade表中的name字段,這時候問題就來了,如果需要一條sql一句同時查出garde表中的兩條數據怎么辦?(兩表的關聯 ...
select * from user_activity group by user_id,activity_id having count(*) > 1 select * from wh ...
https://blog.csdn.net/wqzbxh/article/details/84649485 SELECT concat(host,uri),ua FROM httpdataco WHE ...