Skip to main content

.ilike()

Finds all rows whose value in the stated column matches the supplied pattern (case insensitive).

final res = await supabase
.from('cities')
.select('name, country_id')
.ilike('name', '%la%')
.execute();

Examples

With select()

final res = await supabase
.from('cities')
.select('name, country_id')
.ilike('name', '%la%')
.execute();

With update()

final res = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
.ilike('name', '%la%')
.execute();

With delete()

final res = await supabase
.from('cities')
.delete()
.ilike('name', '%la%')
.execute();

With rpc()

// Only valid if the Stored Procedure returns a table type.
final res = await supabase
.rpc('echo_all_cities')
.ilike('name', '%la%')
.execute();