.neq()

找到所有在所述 column 上的值与指定 value 不匹配的记录`.

const { data, error } = await supabase
  .from('cities')
  .select('name, country_id')
  .neq('name', 'The shire')

参数

  • column required object

    要筛选的“列”.
  • value required object

    用于筛选的“值".

例子

使用 select()

const { data, error } = await supabase
  .from('cities')
  .select('name, country_id')
  .neq('name', 'The shire')

使用 update()

const { data, error } = await supabase
  .from('cities')
  .update({ name: 'Mordor' })
  .neq('name', 'San Francisco')

使用 delete()

const { data, error } = await supabase
  .from('cities')
  .delete()
  .neq('name', 'Mordor')

使用 rpc()

// Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
  .rpc('echo_all_cities')
  .neq('name', 'Lagos')

results matching ""

    No results matching ""