2021
01-08
01-08
解决mybatis三表连接查询数据重复的问题
此问题的产生,主要是数据库的字段名一样导致三张表DOCTORJOBOBJECT有问题的查询语句和查询结果是:SELECTd.*,j.*,o.*from(selectd.*,rownumrfromDOCTORdwhererownum<=6)djoinjobjond.job_id=j.idjoinobjectoono.id=d.object_idwherer>0<imgsrc="https://img-blog.csdn.net/20161020110037608?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve...
继续阅读 >