找出和表相关的数据字典试图(“%”)
select table_name from dict where table_name like 'DBA\_TAB%' escape '\';
“%”匹配n多个字母,“/”是转义符,用escape关键字指定
找出员工号以75开头的员工,已知员工号为4位(“_”)
select * from emp where to_char(empno) like '75__';
“_”匹配一个字母
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20844861/viewspace-594631/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/20844861/viewspace-594631/