1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
SQL> create table t (c varchar(20));
Table created.
SQL> insert into t values ('xxx');
1 row created.
SQL> insert into t values ('yyy');
1 row created.
SQL> insert into t values ('zzz');
1 row created.
SQL> insert into t values ('123xxx');
1 row created.
SQL> insert into t values ('123yyy');
1 row created.
SQL> insert into t values ('123zzz');
1 row created.
SQL> insert into t values ('123xxx123');
1 row created.
SQL> insert into t values ('123yyy123');
1 row created.
SQL> insert into t values ('123zzz123');
1 row created.
SQL> insert into t values ('xxx123');
1 row created.
SQL> insert into t values ('yyy123');
1 row created.
SQL> insert into t values ('zzz123');
1 row created.
SQL> select * from t where regexp_like (c,'xxx|yyy|zzz');
C
--------------------
xxx
yyy
zzz
123xxx
123yyy
123zzz
123xxx123
123yyy123
123zzz123
xxx123
yyy123
zzz123
12 rows selected. |