- 两表查询
左表:
右表:
根据左表id,查询出右表相关nickname
select sa.*,nickname from systemuser_surveycompanyauth sa
left join systemuserdetail s on sa.systemUserId = s.systemuserId
左表:
右表:
根据左表id,查询出右表相关nickname
select sa.*,nickname from systemuser_surveycompanyauth sa
left join systemuserdetail s on sa.systemUserId = s.systemuserId