.gt()"

找到所有在所述 column 上的值大于指定 value 的记录.

const { data, error } = await supabase
  .from('cities')
  .select('name, country_id')
  .gt('country_id', 250)

参数

  • column required object

    筛选的 `column` .
  • value required object

    用于筛选的`value`.

例子

使用 select()

const { data, error } = await supabase
  .from('cities')
  .select('name, country_id')
  .gt('country_id', 250)

使用 update()

const { data, error } = await supabase
  .from('cities')
  .update({ name: 'Mordor' })
  .gt('country_id', 250)

使用 delete()

const { data, error } = await supabase
  .from('cities')
  .delete()
  .gt('country_id', 250)

使用 rpc()

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

results matching ""

    No results matching ""