Oracle数据库字段某部分乱码的过滤问题

Oracle数据库字段某部分乱码的过滤问题,第1张

看一下oracle字符集对不对,regedit 西面software,oracle\NLSLANG有点忘了是不是这个看下这个键值是不是zh开头的。要过滤的话也简单,你先试试like “%?%”这个条件能否查出乱码的数据。如果能查到就用条件 id not in(select id from table where col like“%?%”)

试试下面的SQL语句是否符合你的需求: --A:

select XX_id

from tiantiantian

where sum_date=20110420

and XX_status <30

and XX_type in (1009, 1008, 1003, 1011)

and XX_date >to_date(20110420, 'yyyymmdd')

and not exists(

select xx_id from dididi

where sum_date=20110420

and XX_status <30

and XX_type in (1009, 1008, 1003, 1011)

and XX_date >to_date(20110420, 'yyyymmdd'))

--B:

select XX_id

from dididi

where sum_date=20110420

and XX_status <30

and XX_type in (2001)

and XX_date >to_date(20110420, 'yyyymmdd')

and not exists(

select xx_id from tiantiantian

where sum_date=20110420

and XX_status <30

and XX_type in (2001)

and XX_date >to_date(20110420, 'yyyymmdd'))


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/6795774.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-28
下一篇 2023-03-28

发表评论

登录后才能评论

评论列表(0条)

保存