Statement stmt = conn.createStatement();
stmt.execute("ALTER SESSION SET NLS_COMP=ANSI");
stmt.execute("ALTER SESSION SET NLS_SORT=binary_ci");
stmt.close();
上面是我看的 这样设置后, select * from admin where username='A' 和 select * from admin where username='a'
查询结果是一致的···
我想知道,我要在c# 里面应该怎么设置?
...全文
3724打赏收藏
oracle 11g 忽略字段大小写问题
Statement stmt = conn.createStatement(); stmt.execute("ALTER SESSION SET NLS_COMP=ANSI"); stmt.execute("ALTER SESSION SET NLS_SORT=binary_ci"); stmt.close(); 上面是我看的 这样设置后, select * from admin where username='A' 和 select * from admin where username='