20260821230656

This commit is contained in:
oneao committed 2026-08-21 23:06:56 +08:00
1 parent 2e5d532f23
commit c43b4c8364
144 files changed
+7665 -242

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import java.io.FileInputStream;
import java.sql.*;
import java.util.Properties;
public class FkCount {
public static void main(String[] args) throws Exception {
Properties props = new Properties();
try (FileInputStream in = new FileInputStream(args[0])) { props.load(in); }
try (Connection conn = DriverManager.getConnection(props.getProperty("url"), props.getProperty("username"), props.getProperty("password"));
Statement st = conn.createStatement();
ResultSet rs = st.executeQuery("SELECT COUNT(*) FROM sys.foreign_keys")) {
rs.next(); System.out.println("physical_fk_count=" + rs.getInt(1));
}
}
}