ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 判断字段中是否含有中文

判断字段中是否含有中文

原创 Linux操作系统 作者:hky87 时间:2009-12-09 11:52:38 0 删除 编辑

SELECT *
  FROM dept
 WHERE ASCIISTR (dname) LIKE '%\%' AND INSTR (dname, '\') <= 0;

Oracle® Database SQL Reference
10g Release 2 (10.2)中关于ASCIISTR函数的解释:

ASCIISTR takes as its argument a string, or an expression that resolves to a string, in any character set and returns an ASCII version of the string in the database character set. Non-ASCII characters are converted to the form. \xxxx, where xxxx represents a UTF-16 code unit.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10314474/viewspace-622021/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-10-09

  • 博文量
    87
  • 访问量
    345410