mysql jdbc批量插入和更新到不同的表中

时间:2016-03-18 15:27:57

标签: mysql jdbc batch-processing

我需要在mysql数据库中插入数百万条记录。 我想使用批处理执行选项。 但我的SQL语句适用于不同的表,它们应该以相同的顺序执行。

public class HoverCell extends TableCell<Person, String> {

    public HoverCell(StringProperty hoverProperty) {
        setOnMouseEntered(e -> hoverProperty.set(getItem()));
        setOnMouseExited(e -> hoverProperty.set(null));
    }

    @Override
    protected void updateItem(String item, boolean empty) {
        super.updateItem(item, empty);
        setText(empty ? null : item);
    }
}

现在我正在执行一个声明。如何将其更改为批量执行以节省时间。

感谢你 Aadil

0 个答案:

没有答案