master
金安民 6 months ago
parent a62d0f6a25
commit 714217ef89

Binary file not shown.

@ -3,9 +3,12 @@ import java.sql.*;
import org.junit.Test; import org.junit.Test;
import java.sql.*; import java.sql.*;
import java.time.LocalDateTime;
import org.junit.Test; import org.junit.Test;
import java.util.Random;
public class DML { public class DML {
// 使用相对路径 // 使用相对路径
@ -76,7 +79,7 @@ public class DML {
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
} }
} //清空指定数据表数 } //清空指定数据表数
@Test @Test
public void dropTable() { public void dropTable() {
try (Connection conn = DriverManager.getConnection(URL); try (Connection conn = DriverManager.getConnection(URL);
@ -211,4 +214,6 @@ public class DML {
e.printStackTrace(); e.printStackTrace();
} }
} }
} }
Loading…
Cancel
Save