性能优化的SQL

@Repository
public interface XxxMapper extends BaseMapper<Xxx> {
	@Select("SELECT COUNT(1) > 0 FROM xxx WHERE ${condition} LIMIT 1")
	boolean exist(String condition)
}
posted @ 2023-02-16 12:59  小小爬虫  阅读(10)  评论(0编辑  收藏  举报