ilike()
ilike()用于查找所有在所述列(column)
上的值与提供的 模板(pattern)
相符的记录(不区分大小写)。
案例教程
案例1 (使用select)#
1final data = await supabase 2 .from('cities') 3 .select('name, country_id') 4 .ilike('name', '%la%');
案例2 (使用update)#
1final data = await supabase 2 .from('cities') 3 .update({ 'name': 'Mordor' }) 4 .ilike('name', '%la%');
案例3 (使用delete)#
1final data = await supabase 2 .from('cities') 3 .delete() 4 .ilike('name', '%la%');
案例4 (使用rpc)#
1// Only valid if the Stored Procedure returns a table type. 2final data = await supabase 3 .rpc('echo_all_cities') 4 .ilike('name', '%la%');