首页 > Linux操作系统 > Linux操作系统 > 判断字段中是否有汉字
SQL> create table test(id varchar2(60));
Table created
SQL> insert into test values('张abc');
1 row inserted
SQL> insert into test values('abc');
1 row inserted
SQL> insert into test values('张');
1 row inserted
SQL> commit;
SQL> select id from test where asciistr(id) like '%%';
ID
------------------------------------------------------------
张abc
张
SQL> select * from test where length(id)!=lengthb(id);
ID
------------------------------------------------------------
张abc
张
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/756652/viewspace-242170/ ,如需转载,请注明出处,否则将追究法律责任。