.not()
找到所有不符合过滤器的记录.
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.not('name', 'eq', 'Paris')
参数
-
column required
object
要筛选的“列”. -
operator required
FilterOperator
要使用的运算符进行筛选. -
value required
any
用于筛选的“值".
例子
使用 select()
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.not('name', 'eq', 'Paris')
使用 update()
const { data, error } = await supabase
.from('cities')
.update({ name: 'Mordor' })
.not('name', 'eq', 'Paris')
使用 delete()
const { data, error } = await supabase
.from('cities')
.delete()
.not('name', 'eq', 'Paris')
使用 rpc()
// Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.not('name', 'eq', 'Paris')