sql - Regular expression REGEXP_LIKE -
please me regular expression:
where regexp_like(dbfield, '*п* 2($| )', 'i')
but find:
"кран № 2 пом. 144" "кр. № 2 пом. 260" ...
i don't understand why find that. must "п" before "2". what's wrong? (db oracle)
regexp п*
means symbol "п", repeated 0 or more times
try
where regexp_like(dbfield, 'п.*2($| )', 'i')
or , faster
where lower(dbfield)||' ' '%п%2 %'
Comments
Post a Comment