我有一个Access DB,我想在插入新数据之前删除表的数据。这可能吗 ?我尝试过
var recordList = new ListBuffer[ConsumerRecord[String, String]]()
while (true) {
val records: ConsumerRecords[String, String] = consumer.poll(100)
records.asScala.foreach(record => recordList += record)
recordList.toList
}
但是我收到语法错误