想过成功,也想过失败。但从未想过放弃……

判断字段中是否包含中文

上一篇 / 下一篇  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:

 

评分:0

我来说两句

日历

« 2024-05-08  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 28890
  • 日志数: 40
  • 建立时间: 2008-11-24
  • 更新时间: 2010-05-20

RSS订阅

Open Toolbar