<sql >

        collegeID, collegeName

</sql> 

 

<select >

       select 

        <include ref />

        from t_notification_template

       where id = #{id,jdbcType=BIGINT}

 </select>

 <include ref /> 这个在MyBatis查询数据库的sql中经常会出现。它的在上面已经定义,作用相当于 * ,

 

Base_Column_List是固定的几个字段,而用*号的话会降低查询效率,因为后期数据库的字段会不断增加。

--------------------- 

作者:ShirleyQueen321 

来源:CSDN 

原文:https://blog.csdn.net/weixin_40569991/article/details/88724739 

版权声明:本文为博主原创文章,转载请附上博文链接!

相关文章:

  • 2021-09-21
  • 2021-08-16
  • 2021-08-05
  • 2022-12-23
  • 2021-12-28
  • 2022-01-15
  • 2021-09-05
  • 2022-12-23
猜你喜欢
  • 2021-12-30
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
相关资源
相似解决方案