order()

用指定的列对结果进行排序。

final res = await supabase
  .from('cities')
  .select('name, country_id')
  .order('id',  ascending: false )
  .execute();

Examples

使用select()

final res = await supabase
  .from('cities')
  .select('name, country_id')
  .order('id',  ascending: false )
  .execute();

带有嵌入式资源

final res = await supabase
  .from('countries')
  .select('name, cities(name)')
  .eq('name', 'United States')
  .order('name', foreignTable: 'cities')
  .execute();

results matching ""

    No results matching ""