LIKE Predicate
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
insert into like_ex values
('John Dddoe'),
('Joe Doe'),
('John_down'),
('Joe down'),
('Elaine'),
(''), -- empty string
(null);
select * from like_ex where subject like '%Jo%oe%';
select * from like_ex where subject like '%J%h%^_do%' escape '^';
select * from like_ex where subject not like 'John%';
select * from like_ex where subject not like '';select * from like_ex where subject like '%Jo%oe%';
select * from like_ex where subject like '%J%h%^_do%' escape '^';
select * from like_ex where subject not like 'John%';
select * from like_ex where subject not like '';