I have such postresql table:
id user year id_card_no
1 john 1995 AZE546546
2 ali 2002 464645AZE
3 hayat 2007 4454AZE45455
4 jack 2008 455454554
I want to get all values which have AZE word inside column (id_card_no) field. I used this query:
SELECT * FROM table_name WHERE id_card_no LIKE '%AZE%'
But I got first field which id is equal to 1. How can I get all columns which have AZE word inside id_card_no?
For doing a case insensitive LIKE you have two options:
or