0
我在我的項目中使用續集,我有問題從數據庫獲取非唯一記錄ID。 我有如下表:該表獲取非唯一記錄與續集
table = Sequel::Model.db[:csv_temp]
和記錄是這樣的:
table.all
[{:id=>1,
:school_identifier=>"school_id_1",
:school_name=>"school_name_1",
},
{:id=>2,
:school_identifier=>"school_id_1",
:school_name=>"school_name_2",
}]
我怎樣才能獲得的記錄的id這school_identifier是不是唯一的?
這不工作... –
哎呀。應該可能是'> = 2'。 –