neq()用于匹配列值不等于指定值的行。
列
指定值
create table countries (id int8 primary key, name text); insert into countries (id, name) values (1, 'Afghanistan'), (2, 'Albania'), (3, 'Algeria');
const { data, error } = await supabase .from('countries') .select() .neq('name', 'Albania')
{ "data": [ { "id": 1, "name": "Afghanistan" }, { "id": 3, "name": "Algeria" } ], "status": 200, "statusText": "OK" }
string类型
要过滤的列
任意类型
用来过滤的值
navigate_before eq()
gt() navigate_next