main
黄海 2 years ago
parent 2ade1fbbe2
commit fe0ee394bf

@ -10,7 +10,6 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
public class TestOpenGauss { public class TestOpenGauss {
public static void main(String[] args) { public static void main(String[] args) {
//读取库 //读取库
DruidPlugin druid = new DruidPlugin("jdbc:postgresql://10.10.14.62:5432/dsideal_db", "test", DruidPlugin druid = new DruidPlugin("jdbc:postgresql://10.10.14.62:5432/dsideal_db", "test",
@ -25,7 +24,7 @@ public class TestOpenGauss {
Db.update(sql); Db.update(sql);
List<Record> aList = new ArrayList<>(); List<Record> aList = new ArrayList<>();
for (int i = 1; i <= 20; i++) { for (int i = 1; i <= 1000; i++) {
Record record = new Record(); Record record = new Record();
record.set("id", i); record.set("id", i);
record.set("name", "黄海" + i); record.set("name", "黄海" + i);

Loading…
Cancel
Save