想过成功,也想过失败。但从未想过放弃……
判断字段中是否包含中文
上一篇 /
下一篇 2009-08-25 17:30:22
/ 个人分类:编程语言
SQL> create table test(a varchar2(10));
Table created.
SQL> insert into test values('鸟');
1 row created.
SQL> commit;
Commit complete.
SQL> insert into test values('深刻');
1 row created.
SQL> commit;
Commit complete.
SQL> insert into test values('aaa');
1 row created.
SQL> insert into test values('bbb');
1 row created.
SQL> commit;
Commit complete.
SQL> select a from test;
A
----------
鸟
深刻
aaa
bbb
SQL> select a from test where asciistr(a) like '%\%';
A
----------
鸟
深刻
SQL> select a from test where asciistr(a) not like '%\%';
A
----------
aaa
bbb
收藏
举报
TAG: