db2特殊字符0x1A [英] db2 special character 0x1A

查看:265
本文介绍了db2特殊字符0x1A的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何寻找诸如→(0x1A)之类的特殊字符?
我查询的一个示例是:

How can I seach for a special character like "→" (0x1A)? An example for my query is:

select * from Data where Name like '%→%'

我想使用 0x1A代替→。

I want to use instead of "→" something like 0x1A.

我不能使用任何Java或C#代码。我只有SQuirrel来连接并发送命令到数据库。

I can't use any Java or C# Code. I just have SQuirrel to connect and send commands to the database.

推荐答案

您可以使用chr()搜索字符:

You can use chr() to search the charater:

select * from data where name like '%' + chr(26) + '%'

这篇关于db2特殊字符0x1A的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆