我有一张叫做联系人的表。我想where person_id = 1
在下面的联系人表中获取所有记录。
class Contacts extends Table {
IntColumn get id => integer().autoIncrement()();
TextColumn get contact_type => text().withLength(min: 1, max: 50)();
TextColumn get contact => text().withLength(min: 1, max: 100)();
IntColumn get person_id =>
integer().customConstraint('REFERENCES persons(id)')();
DateTimeColumn get created => dateTime()();
DateTimeColumn get updated => dateTime()();
}
如何select * from contacts where person_id = 1
使用moor_flutter执行?谢谢你,用爱发布。