加载中...
加载中...
Oracle 跟踪的语句 char(2) 工具能查出来,MyBatis 程序中查不出

Oracle 跟踪的语句 char(2) 工具能查出来,MyBatis 程序中查不出 原创

Oracle 跟踪的语句 char(2) 工具能查出来,MyBatis 程序中查不出来?

例如:user_table 的 state定义 char(2)

select * from user_table u where u.state = '0';

使用工具能查出来,结果程序中查不出来。

原因:

因为char(2),不足2位会补空格的.。

select * from user_table u where trim(u.state) = '0';


没有更多推荐了 [去首页]
image
文章
376
原创
293
转载
83
翻译
0
访问量
183398
喜欢
73
粉丝
5
码龄
7年
资源
3

文章目录

加载中...
0
0