10

Mybatis 查询和数据库直接查询结果不一致

 2 years ago
source link: https://www.v2ex.com/t/813319
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Java

Mybatis 查询和数据库直接查询结果不一致

  monster1priest · 16 小时 26 分钟前 via iPhone · 949 次点击
我在本地建了一个 mock 数据库,期间没做过写、删,mybatis 打开了日志打印。
一样的 sql 语句,select count (*)。
查询出来的结果却不一样,一个是 197 ,另一个是 89 。
这是为什么啊

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK