查找非十六进制格式的数据

nxagd54h  于 2021-06-27  发布在  Hive
关注(0)|答案(1)|浏览(340)

我正在尝试在配置单元中编写一个查询,以查找不是十六进制格式的行。我使用rlike来检索十六进制的行。

busg9geu

busg9geu1#

只是使用 NOT RLIKE :

select col from table where col not rlike '^[0-9A-F]+$'; --apply your hexadecimal pattern

对于大写和小写,请使用以下模式: '^[0-9a-fA-F]+$'

相关问题