jane27 发表于 2018-9-22 09:47:13

oracle学习总结二(转义字符)

SQL>   create   table   a   (b   varchar2(10));  Table   created
  SQL>   insert   into   a   values('_a');
  1   row   inserted
  SQL>   select   B   from   A   where   instr(b,'_a')>0;
  B
  ----------
  _a
  select   B   from   A   where   b   like   '%\_a%'   escape   '\'

页: [1]
查看完整版本: oracle学习总结二(转义字符)