.ilike()
Finds all rows whose value in the stated column
matches the supplied
pattern
(case insensitive).
- JavaScript
- Python
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.ilike('name', '%la%')
Parameters
columnrequiredobject
The column to filter on.
patternrequiredstring
The pattern to filter with.
Examples
select()
With - JavaScript
- Python
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.ilike('name', '%la%')
update()
With - JavaScript
- Python
const { data, error } = await supabase
.from('cities')
.update({ name: 'Mordor' })
.ilike('name', '%la%')
delete()
With - JavaScript
- Python
const { data, error } = await supabase
.from('cities')
.delete()
.ilike('name', '%la%')
rpc()
With - JavaScript
- Python
// Only valid if the Stored Procedure returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.ilike('name', '%la%')