首页 新闻 会员 周边 捐助

mysql关联查询,加上排序速度变慢

0
悬赏园豆:5 [待解决问题]

select t1.showCode, t1.Name, t1.Sex, t.AppointmentDate from ((select *from myris.appointment where AppointmentDate >= date_sub(current_date(), interval '10' day) and isFinish = 0 ) t
inner join (select *from myris.patient where (Name like '%2%' or showCode like '%2%') and HospitalID = '20220302160409') t1 on t.PatientID = t1.PatientID) order by t.AppointmentDate desc;

萍平淡淡的主页 萍平淡淡 | 初学一级 | 园豆:199
提问于:2022-03-03 12:00
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册