使用 = 运算符查询:-
Select us.FirstName
,uf.FileTitle
,pq.Question
,pa.Answer from
UserMst us,UploadedFile uf,PollQuestion pq,PollAnswer pa,PollResult pr
where us.UserId = pr.U_id
and uf.FileId=pr.A_id
and pq.Q_id=pr.Q_id
and pa.A_id=pr.ans_id
使用 Join 关键字查询:-
Select us.FirstName,uf.FileTitle ,pq.Question,pa.Answer from
PollResult pr join UserMst us on us.UserId = pr.U_id
join UploadedFile uf on uf.FileId = pr.A_id
join PollQuestion pq on pq.Q_id= pr.Q_id
join PollAnswer pa on pa.A_id =pr.ans_id
哪一个在执行上更好?